I have been trying to get tts working using a slightly modified version of the sample code here.
https://developers.deepgram.com/docs/streaming-the-audio-output
I have attached 2 files, one with the code I'm trying to debug, the other with the error messages I'm getting. It fails shortly after receiving a response.
Any help appreciated.
#Problems with tts
1 messages · Page 1 of 1 (latest)
Thanks for asking your question. Please be sure to reply with as much detail as possible so we can assist you efficiently. Such as:
- Provide the
request_idif you've a question about a transcription response. - The options you used or the api.deepgram.com URL you sent your request to, including parameters.
- Any code snippets you can include.
- Any audio you can include, or if you can't share it here please email it to us at [email protected] and provide a link to this thread.
I found two issues with the sample code. The model alpha-asteria-en does not exist, change it to a supported model. The authorization section needs "Authorization": "Token DEEPGRAM_API_KEY", the word Token needs to be included with the key. I added an if statement to print errors after the post request. See attached example file and diff against your file.
Hope that helps
Indeed it does! Thank you.