#Deepgram Client initialization for language change in live transcription

1 messages · Page 1 of 1 (latest)

steady anvil
#

My current need is to change the language of the deepgram of the live API during buffer streaming. I am already closing the connection before language change and creating new deepgram socket with new language parameters. But I seem to keep getting this error:
node_modules/@deepgram/sdk/dist/main/packages/LiveClient.js:89
throw new errors_1.DeepgramError("Could not send. Connection not open.");
^

DeepgramError: Could not send. Connection not open.
at LiveClient.send (/node_modules/@deepgram/sdk/dist/main/packages/LiveClient.js:89:19)
at Socket.<anonymous> (/server.js:242:26)
at Socket.emit (node:events:515:28)
at Socket.emitUntyped (/node_modules/socket.io/dist/typed-events.js:69:22)
/node_modules/socket.io/dist/socket.js:428:39
at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
__dgError: true
}

Node.js v21.1.0

sudden iceBOT
#

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.
steady anvil
slim hill
steady anvil
#

I am only using the supported languages