Closed Licho1 closed 2 months ago
Hi @Licho1
A 405 error means Method Not Allowed
(or you have a problem with your settings):
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405
The lowest value utterance_end_ms
can be is 1000 per the documentation:
https://developers.deepgram.com/docs/understanding-end-of-speech-detection#using-utteranceend
Thank you. Yes it was invalid settings. Also whisper models are not supported in the live mode apparently
@Licho1 Yea, I would start moving away from using whisper in any scenario. The plan is to deprecate it at some point. It's a long way off, but I just thought you should know.
I tried to replicate code from this github using live client, however websocket returns error 405:
2024-06-12 12:12:30.303 [Information] DeepgramWsClientOptions: KeepAlive: False 2024-06-12 12:12:30.335 [Information] DeepgramWsClientOptions: OnPrem: False 2024-06-12 12:12:30.336 [Information] DeepgramWsClientOptions: APIVersion: v1 2024-06-12 12:12:30.341 [Information] DeepgramWsClientOptions: REST BaseAddress does not contain API version: api.deepgram.com 2024-06-12 12:12:30.342 [Information] DeepgramWsClientOptions: BaseAddress does not contain protocol: api.deepgram.com/v1 2024-06-12 12:12:30.342 [Information] DeepgramWsClientOptions: BaseAddress: wss://api.deepgram.com/v1 2024-06-12 12:12:30.547 [Information] Connect: options: { "encoding": "linear16", "interim_results": false, "model": "whisper-large", "punctuate": true, "sample_rate": 16000, "smart_format": true, "utterance_end_ms": "500", "vad_events": true } 2024-06-12 12:12:30.548 [Information] Connect: Using default connect cancellation token 2024-06-12 12:12:31.392 [Error] Connect: System.Net.WebSockets.WebSocketException thrown The server returned status code '405' when status code '101' was expected.