Closed purplehaze2602 closed 5 months ago
@tempo-riz Can you please help here? I am also facing same issue.
Hey ! You must specify the encoding and sample rate in deepgram's params for streaming, I updated the docs since it wasn't obvious :
final streamParams = {
// must specify encoding and sample_rate according to the audio stream
'encoding': 'linear16',
'sample_rate': 16000,
};
This is the code i am using.
I only get metadata as output:
{"type":"Metadata","transaction_key":"deprecated","request_id":"746922cc-e470-4cfd-a01f-01792cb96a7f","sha256":"c9b92b2e86055b9dfb5fdcce4161185384ac32bf08107346e3631b1fea922fb2","created":"2024-05-07T18:42:11.487Z","duration":0.0,"channels":0}