Closed amit-iconflux closed 3 months ago
hey @amit-iconflux as mentioned in the readme "...was not upgraded to websocket" errors often mean that your parameters are invalid, in the url I see that its the case, you used params that belong to TTS instead of STT, correct ones look like that:
final streamParams = {
'detect_language': false, // not supported by streaming API
'language': 'en',
// must specify encoding and sample_rate according to the audio stream
'encoding': 'linear16',
'sample_rate': 16000,
};
for STT streaming you can find valid params here : https://developers.deepgram.com/reference/listen-live
Getting error in flutter deepgram_speech_to_text: ^2.2.2
Connection to 'https://api.deepgram.com:0/v1/listen?model=aura-asteria-en&encoding=linear16&container=wav&detect_language=true&filler_words=false&punctuation=true#' was not upgraded to websocket
Getting error when call start method:
transcriber.start();
Flutter doctor result is following :