jambonz / custom-speech-example

Example application showing how to add speech vendors to jambonz for both STT and TTS
MIT License
5 stars 1 forks source link

custom-speech-example

This is an example http/webserver application showing how to add support for a custom speech vendor to jambonz using the speech API. It includes the following examples:

TTS:

STT:

Configuration

You can configure the application to connect to all of the providers or just some depending on the environment variables supplied.

$ API_KEY= \ GCP_JSON_KEY_FILE= \ ASSEMBLY_AI_API_TOKEN= \ VOSK_URL=xxxx:yyyy GLADIA_API_KEY=xxxxxxxx \ ELEVEN_API_KEY=xxxxxxx \ HTTP_PORT=3000 node app.js



Then, in the jambonz portal create a custom speech vendor, providing the wss (for STT) and http(s) (for TTS) URLs to your server, and your api key (foobarwhatever).

After adding the custom speech vendors you can use them in a jambonz application.  Make sure this application is running and accessible at the URLs you provisioned into jambonz.

>> A simple app you might use to test with is [jambonz-echo-test](https://github.com/jambonz/jambonz-echo-test).

Enjoy!