LiveTranscription WebSocket Issue
I'm encountering an issue with liveTranscription where the WebSocket connection is closing unexpectedly without any apparent reason. Here are the relevant event logs:
-
WebSocket connection opened:
Event { isTrusted: true, type: 'open', target: WebSocket, currentTarget: WebSocket, eventPhase: 2, // ... other properties } -
Received a metadata message from the WebSocket:
{ type: 'Metadata', transaction_key: 'deprecated', request_id: '0d78946a-4dec-4dd5-8f04-29c57b88999d', sha256: 'e8e87ea618646272d661edb61cd469cffbfb95b2b0415ff1b95bbe5d143ea990', created: '2024-07-11T21:57:44.587Z', // ... other properties } -
WebSocket closed:
CloseEvent { isTrusted: true, wasClean: true, code: 1000, reason: '', type: 'close', // ... other properties }
The WebSocket URL used: wss://api.deepgram.com/v1/listen?model=nova-2&replace=bau:Bao&language=en&punctuate=true
If anyone has insights into why the WebSocket might be closing prematurely or suggestions for troubleshooting, I'd greatly appreciate your help!