I am new to DeepSpeech and trying to prepare the setup for deepSpeech.
I am facing below issue-
(deepspeech-venv) [root@localhost DeepSpeech]# pip install deepspeech
Collecting deepspeech
/root/tmp/deepspeech-venv/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/root/tmp/deepspeech-venv/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning Could not find a version that satisfies the requirement deepspeech (from versions: ) No matching distribution found for deepspeech
I am following below link for installation
Below is the system info
(deepspeech-venv) [root@localhost DeepSpeech]# python --version
Python 2.7.6
You have mail in /var/spool/mail/centerstage
(deepspeech-venv) [root@localhost DeepSpeech]# cat /etc/redhat-release
CentOS release 6.9 (Final)
Please let me know what is the problem here? Why I am not able to install deepspeech.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
2
Please try pip install --verbose deepspeech and paste the content. Also, i’d advise against installing as root, that’s not a good habit to take.
Also, what is your pip version? Try pip --version, you might need something 9.x. In this case, try pip install --upgrade --user pip, and use the $HOME/.local/bin/pip
My pip version is 9.0.1
(deepspeech-venv) [centerstage@localhost DeepSpeech]$ pip --version
pip 9.0.1 from /home/centerstage/tmp/deepspeech-venv/lib/python2.7/site-packages (python 2.7)
Output of ‘pip install --verbose deepspeech’ command is in the attached file-
The output of this command is too long and I am neither able to paste that nor upload as a doc here. As this system reports error that new user can only put 5 links in a post. Can you suggest me how to upload it?
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
4
On applying upgrade command it shows below output-
(deepspeech-venv) [centerstage@localhost DeepSpeech]$ pip install --upgrade deepspeech-0.1.1-cp27-cp27mu-manylinux1_x86_64.whl
deepspeech-0.1.1-cp27-cp27mu-manylinux1_x86_64.whl is not a supported wheel on this platform.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
10
Looks like I missed one part of the command: mv deepspeech-0.1.1-cp27-cp27mu-manylinux1_x86_64.whl deepspeech-0.1.1-cp27-cp27m-manylinux1_x86_64.whl && pip install --user --upgrade deepspeech-0.1.1-cp27-cp27m-manylinux1_x86_64.whl
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
11
Right, this might be the lack of --enable-unicode=ucs4 in the CONFIG_ARGS parts. If that’s the case, renaming to deepspeech-0.1.1-cp27-cp27m-manylinux1_x86_64.whl should trick it, but it might behave erratically with Unicode.
It could be useful that you file an issue on Github about supporting this setup :).
Now I am able to install deepspeech.
But when I tried to install the requirements it throws error while installing tensorflow-1.5.0
(deepspeech-venv) [centerstage@localhost DeepSpeech]$ pip install -r requirements.txt
Collecting pandas (from -r requirements.txt (line 1))
/home/centerstage/tmp/deepspeech-venv/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/centerstage/tmp/deepspeech-venv/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Using cached pandas-0.22.0.tar.gz
Collecting progressbar2 (from -r requirements.txt (line 2))
Using cached progressbar2-3.35.2-py2.py3-none-any.whl
Collecting python-utils (from -r requirements.txt (line 3))
Using cached python_utils-2.3.0-py2.py3-none-any.whl Collecting tensorflow==1.5.0 (from -r requirements.txt (line 4))
** Could not find a version that satisfies the requirement tensorflow==1.5.0 (from -r requirements.txt (line 4)) (from versions: )** No matching distribution found for tensorflow==1.5.0 (from -r requirements.txt (line 4))
Meanwhile I just switched to Centos version 7.3 and I am able to successfully setup the deepspeech project along with tensorflow.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
13
This is only needed if you intend to train. The fact that you have been able to install confirms it was just the unicode stuff. But if TensorFlow upstream itself fails, then all the bets are off and we cannot help you on that.
I have a question and please let me know if this is the right place to ask it or should I open a new discussion window for it?
When I ran the decoder using the default model on a audio .wav file of ~4 sec it took ~38 sec of inference time.
(deepspeech-venv) [centerstage@localhost DeepSpeech]$ deepspeech …/models/output_graph.pb …/hiroshima-1.wav …/models/alphabet.txt …/models/lm.binary …/models/trie
Loading model from file …/models/output_graph.pb
2018-02-27 17:26:13.741657: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Loaded model in 0.469s.
Loading language model from files …/models/lm.binary …/models/trie
Loaded language model in 2.297s.
Running inference.
on a bright cloud less morning
Inference took 38.391s for 4.620s audio file.
Why is it taking this long of time?
How to improve the speed?
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
15
It depends on a lot of parameters: CPU, IO subsystem. Can you give more details ?
Please let me know if you need any more information.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
17
What’s your exact CPU model, amount of RAM ? Hard-drive or SSD? It could the loading of the model itself that takes some time. Try artifacts from TaskCluster on master branch, C++ client in native_client.tar.xz contains “-t” option and you can use the mmap trick. It should all be accessible from readme. I’ll give you direct pointers if you don’t find but right now I cannot :-/.
I have downloaded DeepSpeech from below link and installed for python using the README.md file present in Deepspeech directory
There is one more README.md file present in the native_client directory which stats about building the Tensorflow and DeepSpeech libraries.
I am not getting your point from the above statement.
Can you please elaborate more on it?
My system contains HDD.
Total RAM is 15688592 kB.
Loading the model takes 0.469 sec while loading the loanguage model takes 2.297 sec
Loaded model in 0.469s.
Loading language model from files …/models/lm.binary …/models/trie
Loaded language model in 2.297s.
Number of cores
[centerstage@localhost ~]$ cat /proc/cpuinfo | grep -i ‘core id’
core id : 0
core id : 1
core id : 2
core id : 3
core id : 4
core id : 5
core id : 0
core id : 1
core id : 2
core id : 3
core id : 4
core id : 5
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
19