Answer the question
In order to leave comments, you need to log in
How to solve error when using vosk library "Ivector feature dimension mismatch: got -1 but network expects 40"?
I did speech recognition using the vosk library, but it gives an error.
Here is part of the code:
import json
import pyaudio
from vosk import Model, KaldiRecognizer
p=pyaudio.PyAudio()
model = Model('vosk-model-small-ru-0.15')
rec = KaldiRecognizer(model, 8000)
streaming = p.open(format=pyaudio.paInt16, channels=1,rate = 8000, input=True, frames_per_buffer=8000)
streaming.start_stream()
engine = pyttsx3.init()
Ivector feature dimension mismatch: got -1 but network expects 40
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question