#no close frame received or sent

1 messages · Page 1 of 1 (latest)

proper oak
#

I am using websocket api implementation to transcribe audio. The streaming isoften failing with 'Error' no close frame received or sent

winged pierBOT
#

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_id if 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.
spare comet
#

are you using one of the SDKs? if you so, can you provide what the error or exception is printing?

proper oak
#

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

GitHub

a Demo of Deepgram & Twilio that allows multiple client subscribers to watch live transcripts from ongoing Twilio calls. - deepgram-devs/deepgram-twilio-streaming-python

proper oak
#

Also the exception type is Exception type: ConnectionClosedError

spare comet
#

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.

proper oak
#

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.

spare comet
#

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