I'm encountering an issue where my streaming transcription integration works perfectly in my local development environment but fails in staging, despite using the exact same code and WebSocket setup.
In local, I use the wss://api.deepgram.com/v1/listen?model=nova-2&language=en-US&encoding=opus&punctuate=true&smart_format=true&interim_results=true endpoint. I receive transcript messages as expected. The Deepgram console logs show that the model is nova and the audio duration is greater than 0 seconds, with charges recorded.
In hosted staging branch, with the same code, I successfully establish the WebSocket connection and send audio chunks of about 1.9KB as binary messages. However, I receive no transcript messages. The Deepgram console shows the request using the base model and an audio duration of 0 seconds.
Both environments use the same MediaRecorder MIME type (audio/webm;codecs=opus) and browser (Chrome 137). The user agent string is identical. The WebSocket is authenticated and confirmed to be connected in both cases.