Hi, I'm using the live Python SDK Deepgram client (v 3.1.4) (https://github.com/deepgram/deepgram-python-sdk/blob/v3.1.4/deepgram/clients/live/v1/client.py) and sometimes get this error:
Exception in _listening: received 1011 (unexpected error) Deepgram did not receive audio data or a text message within the timeout window. See https://dpgr.am/net0001; then sent 1011 (unexpected error) Deepgram did not receive audio data or a text message within the timeout window. See https://dpgr.am/net0001
The problem is that I'm getting thousands of these messages.
I've checked that the data was sent in the specified timeout, the request_id is aa4da787-2bf7-4d91-8b19-5b84a2573a4f
Could you please help with the following questions:
what was the reason?
what is the correct way to recreate the connection and stop the errors when this happens?
used options:
sample_rate=48000
options = LiveOptions(
model="nova-2",
language="en-US",
# smart_format=True,
sample_rate=sample_rate,
encoding="linear16",
interim_results=True,
utterance_end_ms='2000',
)
Official Python SDK for Deepgram's automated speech recognition APIs. - deepgram/deepgram-python-sdk
Power your apps with automatic speech recognition and language understanding capabilities with the world's most powerful speech-to-text API.