#no close frame received or sent
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.
are you using one of the SDKs? if you so, can you provide what the error or exception is printing?
Hello David, thanks for the response. No I am not using sdks, but connectiing using api and websocket client "wss://api.deepgram.com/v1/listen"
sending bytes as chunks also have an aync function to set KeepAlive
my reference was https://github.com/deepgram-devs/deepgram-twilio-streaming-python/blob/master/twilio.py
Also the exception type is Exception type: ConnectionClosedError
Usually when you get that error and you are using keepalives, the audio stream encoding doesnt match what you supplied on the query parameters.
Outside of that, it's hard to say since you are using your own implementation and I have very little to go on.
basically i am able to sent and retreive the for a few seconds during a call and the connection is lost after a few seconds. This happens like 40% of the time.
unless you are sending an empty byte as a message (which singles to the server you are closing the connection), the keepalive should hold the connection open