I have created and activated the virtual environment in pycharm and then installed the deepspeech module via pip.
but when I run the import deepspeech command I am getting the following error:
Traceback (most recent call last):
File "D:\Coding\jarvis\app.py", line 1, in <module>
import deepspeech
File "D:\Coding\jarvis\deepspeech\lib\site-packages\deepspeech\__init__.py", line 23, in <module>
from deepspeech.impl import Version as version
File "D:\Coding\jarvis\deepspeech\lib\site-packages\deepspeech\impl.py", line 13, in <module>
from . import _impl
ImportError: DLL load failed while importing _impl: A dynamic link library (DLL) initialization routine failed.
Kindly tell a solution to this and if possible make it easy to understand for a beginner.
I want to make a basic voice assistant to perform some tasks. I don’t want to use the speech recognition library as it needs an online connection and adds to the latency. I want to use the pre-trained models of deepspeech and have real-time conversion. So any other suggestions will be really helpful.
If I knew the answer, I would have written it. DeepSpeech works fine on Windows for many users like me. You did something the others didn’t. Until you share all the info outlined in the guidelines it will be almost impossible to help you.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
6
If you want help, then kindly follow the guidelines.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
11
It’s okay to be a newbie, but it’s not okay to ignore others that are replying to help you. We have already told you what we need. Until you follow the linked guidelines, there is nothing we can do.
OS and Version:- WINDOWS 10 10.0.19041 Build 19041
deepspeech version:- 0.9.3
Python Version:- 3.9 (same error on 3.8)
I am using the speech-to-text pretrained model.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
17
Ok, I’m not interested in helping someone who is obviously here just to make us loose time. We have linked you the guidelines for gathering as much as possible of informations on your system, and you continue to make fun of us. Have a good day.
what did I do wrong now please try to understand I am not making fun of anyone I am not able to make any progress in my project. If there was a way I could do it by myself I would have already done that, I have searched google for this problem put a question on stack overflow but there a user guided me here.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
19
not following the required guidelines for sharing your problem
linking to a video tutorial not made by us: do you really expect people who want to help you viewing a video to know what you might have did wrong? I don’t have time for that
not sharing all the exact steps you took to reproduce your issue ; just stating “I installed using pip” is not enough, because we can’t verify what you did
Now, too bad, but I can’t spend my whole day helping you, so you have basically ran out of time with me, I need to work.
then I downloaded a pre-trained model deepspeech-0.9.3-models.pbmm file from the GitHub
I also downloaded the deepspeech-0.9.3-models.scorer file from Github.
Then I followed this website to make it work(I was trying to use your docs but they were not understandable by me that is why I read from there and also the video)
Traceback (most recent call last):
File "D:\Coding\jarvis\main.py", line 1, in <module>
import deepspeech
File "C:\Users\saura\AppData\Local\Programs\Python\Python39\lib\site-packages\deepspeech\__init__.py", line 23, in <module>
from deepspeech.impl import Version as version
File "C:\Users\saura\AppData\Local\Programs\Python\Python39\lib\site-packages\deepspeech\impl.py", line 13, in <module>
from . import _impl
ImportError: DLL load failed while importing _impl: A dynamic link library (DLL) initialization routine failed.
I have performed all of the above steps 3-4 times now and in python version 3.8 and 3.9 but the same error always.
like @lissyx I am so fed up with this I just can’t explain so kindly help if anyone knows the answer