mozilla / DeepSpeech

DeepSpeech is an open source embedded (offline, on-device) speech-to-text engine which can run in real time on devices ranging from a Raspberry Pi 4 to high power GPU servers.
Mozilla Public License 2.0
25.41k stars 3.98k forks source link

How to import deepspeech model in local environment or google colab? #3806

Open afsara-ben opened 3 months ago

afsara-ben commented 3 months ago

I can run deepspeech using

!deepspeech --model deepspeech-0.9.3-models.pbmm --scorer deepspeech-0.9.3-models.scorer --audio audio.wav

but if I try to do import deepspeech it gives the error

ModuleNotFoundError: No module named 'deepspeech'

I have done pip install deepspeech and using python3.7 so it shouldn't be a compatibility issue.