python3 ./test-onnx-ctc.py Traceback (most recent call last): File…
- User
python3 ./test-onnx-ctc.py Traceback (most recent call last): File "/home/user/voice_bot/sherpa-onnx-nemo-ctc-giga-am-v2-russian-2025-04-19/./test-onnx-ctc.py", line 6, in import kaldi_native_fbank as knf ModuleNotFoundError: No module named 'kaldi_native_fbank' user@vhisper:~/voice_bot/sherpa-onnx-nemo-ctc-giga-am-v2-russian-2025-04-19$
- Assistant
The error message:
ModuleNotFoundError: No module named 'kaldi_native_fbank'indicates that the Python module
kaldi_native_fbankis not installed in your environment.How to fix:
kaldi_native_fbankis a third-party Python module used to extract filter bank (fbank) features similar to Kaldi's implementation. It is often a dependency for speech recognition projects like sherpa-onnx.1. Install
kaldi_native_fbankvia pipTry installing it directly via pip:
pip install kaldi-native-fbankor, if you are using python3 explicitly:
- User
python3 ./test-onnx-ctc.py ==========Input========== NodeArg(name='features', type='tensor(float)', shape=['batch_size', 64, 'seq_len']) NodeArg(name='feature_lengths', type='tensor(int64)', shape=['batch_size']) ==========Output========== NodeArg(name='log_probs', type='tensor(float)', shape=['batch_size', 'seq_len', 34]) Traceback (most recent call last): File "/home/user/voice_bot/sherpa-onnx-nemo-ctc-giga-am-v2-russian-2025-04-19/./test-onnx-ctc.py", line 155, in main() File "/home/user/voice_bot/sherpa-onnx-nemo-ctc-giga-am-v2-russian-2025-04-19/./test-onnx-ctc.py", line 122, in main audio, sample_rate = sf.read(wav, dtype="float32", always_2d=True) File "/usr/local/lib/python3.9/dist-packages/soundfile.py", line 305, in read with SoundFile(file, 'r', samplerate, channels, File "/usr/local/lib/python3.9/dist-packages/soundfile.py", line 690, in init self._file = self._open(file, mode_int, closefd) File "/usr/local/lib/python3.9/dist-packages/soundfile.py", line 1265, in _open raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name)) soundfile.LibsndfileError: Error opening './example.wav': System error. user@vhisper:~/voice_bot/sherpa-onnx-nemo-ctc-giga-am-v2-russian-2025-04-19$
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.