Things to do before
- Install websockets and asyncio on the rasperry pi and the Nano 13 (192.168.123.13)
- AudioRelay.py on the Rasperry PI: python3 AudioRelay.py
- audio_receiver.py on the Nano 13: python3 audio_receiver.py
How to run On own PC:
- npm install axios ws
- Insert API Key in mp3player.js (get it on https://elevenlabs.io/ )
- change the audioSocketUrl to the IP of your Rasperry Pi (Go 1 Wlan: 192.168.12.1)
- change language_id to desired language (de, en, it)
- insert desired text in textToSpeech function at the bottom
- node Mp3Player.js
For more info: https://docs.elevenlabs.io/api-reference/quick-start/introduction