I’m trying to run DeepSpeech on my Linux Mint 20.
My Python version: Python 3.8.2, Procesor: AMD Ryzen 3 3200G.
I’d like to run tensorflow CPU only for now because I don’t have GPU with CUDA yet. So what I did is:
Initializing model…
INFO:root:ARGS.model: deepspeech-0.7.4-models.pbmm
TensorFlow: v1.15.0-24-gceb46aa
DeepSpeech: v0.7.4-0-gfcd9563
2020-07-18 12:04:10.432985: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
INFO:root:ARGS.scorer: deepspeech-0.7.4-models
Traceback (most recent call last):
File “mic_vad_streaming.py”, line 224, in
main(ARGS)
File “mic_vad_streaming.py”, line 166, in main
model.enableExternalScorer(ARGS.scorer)
File “/home/cybersolus/.local/lib/python3.8/site-packages/deepspeech/init.py”, line 88, in enableExternalScorer
raise RuntimeError(“EnableExternalScorer failed with ‘{}’ (0x{:X})”.format(deepspeech.impl.ErrorCodeToErrorMessage(status),status))
RuntimeError: EnableExternalScorer failed with ‘Invalid scorer file.’ (0x2002)
You’re right. I forgot about venv. But now I can’t install pyaudio on my virtual environment. On linux mint I should use apt-get install python3-pyaudio which I installed already, but on my venv pip3 shows:
A virtual env doesn’t change your server. If it worked before, it should now. Check that everything works and follow the docs linked here for package versions
Initializing model...
INFO:root:ARGS.model: deepspeech-0.7.4-models.pbmm
TensorFlow: v1.15.0-24-gceb46aa
DeepSpeech: v0.7.4-0-gfcd9563
2020-07-18 13:47:29.092161: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
INFO:root:ARGS.scorer: deepspeech-0.7.4-models
Traceback (most recent call last):
File "mic_vad_streaming.py", line 224, in <module>
main(ARGS)
File "mic_vad_streaming.py", line 166, in main
model.enableExternalScorer(ARGS.scorer)
File "/home/cybersolus/Cybersolus/Voice/lib/python3.8/site-packages/deepspeech/__init__.py", line 88, in enableExternalScorer
raise RuntimeError("EnableExternalScorer failed with '{}' (0x{:X})".format(deepspeech.impl.ErrorCodeToErrorMessage(status),status))
RuntimeError: EnableExternalScorer failed with 'Invalid scorer file.' (0x2002)
2020-10-30 14:30:11.199583: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘cudart64_101.dll’; dlerror: cudart64_101.dll not found
2020-10-30 14:30:11.247284: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
File “mic_vad_streaming.py”, line 8, in
import webrtcvad
ModuleNotFoundError: No module named ‘webrtcvad’