Small model doesn't decode 8 kHz data
- Lenguaje dominante
- Jupyter Notebook
- Estrellas
- 15.1k
- Forks
- 1.8k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Hi All,
I am playing with test_simple.py, I use asterisk to record a file saved to /var/lib/asterisk/sounds/test.wav
so then I run python3 test_simple.py /var/lib/asterisk/sounds/test.wav
ERROR (VoskAPI:MaybeCreateResampler():online-feature.cc:99) Sampling frequency mismatch, expected 16000, got 8000
doing file test.wav says: test.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz
THe line in test_simple.py says:
rec = KaldiRecognizer(model, wf.getframerate())
so I would expect its READING The rate from teh file - does not seem to be right ????
But then I change the code to be 8000
rec = KaldiRecognizer(model, 8000)
I still get: ERROR (VoskAPI:MaybeCreateResampler():online-feature.cc:99) Sampling frequency mismatch, expected 16000, got 8000
I then change the line to be
rec = KaldiRecognizer(model, 16000)
The program runs now - but I get the "wrong" result printed for the STT.
What is happening here - how can I correct ?
Running test_simple.py with the included test.wav - works just fine it seems
That test is 16000 test.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 16000 Hz
Jerry
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.