alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
7.57k stars 1.06k forks source link

Vosk Not Recording in Dictation #1328

Open securigy opened 1 year ago

securigy commented 1 year ago

Below is the trace and although there are no Exception I can se in the logs, the dictation is not working. The result is always "Partial Result".

17:13:48.898 Verbose Main Thread VoskNAudio+Init Init entered 'Gpt4Audio.exe' (CLR v4.0.30319: Gpt4Audio.exe): Loaded 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\PrivateAssemblies\Runtime\Microsoft.VisualStudio.Debugger.Runtime.Desktop.dll'. [0000025eb5848680] mmdevice audio output error: cannot initialize COM (error 0x80010106) LOG (VoskAPI:ReadDataFiles():model.cc:213) Decoding params beam=10 max-active=3000 lattice-beam=2 LOG (VoskAPI:ReadDataFiles():model.cc:216) Silence phones 1:2:3:4:5:6:7:8:9:10 LOG (VoskAPI:RemoveOrphanNodes():nnet-nnet.cc:948) Removed 0 orphan nodes. LOG (VoskAPI:RemoveOrphanComponents():nnet-nnet.cc:847) Removing 0 orphan components. LOG (VoskAPI:ReadDataFiles():model.cc:248) Loading i-vector extractor from C:\Users\Dev\AppData\Roaming\Gpt4AudioData\Models\vosk-model-small-en-us-0.15/ivector/final.ie LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:204) Done. LOG (VoskAPI:ReadDataFiles():model.cc:282) Loading HCL and G from C:\Users\Dev\AppData\Roaming\Gpt4AudioData\Models\vosk-model-small-en-us-0.15/graph/HCLr.fst C:\Users\Dev\AppData\Roaming\Gpt4AudioData\Models\vosk-model-small-en-us-0.15/graph/Gr.fst LOG (VoskAPI:ReadDataFiles():model.cc:303) Loading winfo C:\Users\Dev\AppData\Roaming\Gpt4AudioData\Models\vosk-model-small-en-us-0.15/graph/phones/word_boundary.int 17:13:56.738 Verbose Main Thread VoskNAudio+Init Init exiting 17:13:56.739 Verbose Main Thread VoskNAudio+StartRecording StartRecording entered 17:13:56.741 Verbose Main Thread VoskNAudio+InitAudio InitAudio entered 17:13:56.743 Verbose Main Thread VoskNAudio+InitAudio InitAudio exiting 17:13:56.772 Verbose Main Thread VoskNAudio+StartRecording StartRecording exiting

I do see on the line #4 Vosk internal error about COM, but have no idea if this is the reason and what the reason is...

securigy commented 1 year ago

Apparently the line: [000001b1afd81ad0] mmdevice audio output error: cannot initialize COM (error 0x80010106) and the rest shows up when I execute mModel = new Model(modelFolder);

nshmyrev commented 1 year ago

There are no critical issues in your log. As for partial results, your microphone is probably muted.