Hello there!
I'm trying to use Deepgram's streaming transcription functionality but I always get this error:
<Task finished name='Task-23' coro=<AsyncLiveClient._start() done, defined at /Users/giovannidelgallo/PycharmProjects/glaut-back/venv/lib/python3.10/site-packages/deepgram/clients/live/v1/async_client.py:91> exception=ConnectionClosedError(Close(code=1011, reason='Deepgram did not provide a response message within the timeout window. See https://dpgr.am/net0000'), Close(code=1011, reason='Deepgram did not provide a response message within the timeout window. See https://dpgr.am/net0000'), True)>
I am sending 200ms WAV audio chunks from my FE trough a WS connection, and the chunks themselves seem to arrive correctly, however whenever I try doing this:
if "bytes" in message:
audio_data = message["bytes"]
print(f"SENDING {len(audio_data)} BYTES")
await self.dg_connection.send(audio_data)
Nothing happens (except for the print) and some seconds later I get the error above.
Am I doing something wrong?
Thanks in advance!