Python Forum
Offline audio to text (Speech Recognition)
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Offline audio to text (Speech Recognition)
#11
Speach recognition is not 100% accurate even if you use Google services. It will not go without editing and post-processing
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#12
(Jan-16-2018, 06:16 AM)jehoshua Wrote: Following the tutorial at https://python-forum.io/Thread-Basic-Par...1#pid18261 , I'm not sure how to equate the following

Quote:# Make virtualenv that use Python 3.5
mint@mint ~/Desktop/my_env $ virtualenv -p /usr/bin/python3.5 my_env
mint@mint ~ $ cd my_env

for Python 3.6 ?

Have been reading up on how to use the virtual environment with Python 3.6 and python3-venv , and it seems after the initial command

python3 -m venv /home/********/Public/Servers/django-deepspeech-server
all that is required to use the virtual environment is to 'activate'

source /home/********/Public/Servers/django-deepspeech-server/bin/activate
and then to exit the virtual environment

deactivate
Reply
#13
(Jan-16-2018, 11:14 AM)jehoshua Wrote: Have been reading up on how to use the virtual environment with Python 3.6 and python3-venv , and it seems after the initial command
it's just source bin/activate after you have cd into environment folder.
The deactivate to get out.
Example:
# before location 
mint@mint ~ $ which python
/home/mint/.pyenv/shims/python
mint@mint ~ $ python -V
Python 3.6.2

# Make environment and cd in
mint@mint ~ $ python -m venv foo_env
mint@mint ~ $ cd foo_env

# Activate
mint@mint ~/foo_env $ source bin/activate

# Python and pip from environment is used
(foo_env) mint@mint ~/foo_env $ which python
/home/mint/foo_env/bin/python
(foo_env) mint@mint ~/foo_env $ pip -V
pip 9.0.1 from /home/mint/foo_env/lib/python3.6/site-packages (python 3.6)

# Deactivate
(foo_env) mint@mint ~/foo_env $ deactivate
mint@mint ~/foo_env $ 
Reply
#14
(Jan-16-2018, 12:05 PM)snippsat Wrote: it's just source bin/activate after you have cd into environment folder.
The deactivate to get out.

Yes, it's either ..

source /home/********/Public/Servers/django-deepspeech-server/bin/activate
or

cd /home/********/Public/Servers/django-deepspeech-server/
source bin/activate
Thanks for your example, much appreciated. :)
Reply
#15
After a few projects were installed today, I went to test the server

$ python3 manage.py runserver
Error:
2018-01-17 08:21:49.120154: F tensorflow/core/platform/cpu_feature_guard.cc:35] The TensorFlow library was compiled to use AVX2 instructions, but these aren't available on your machine. Aborted (core dumped)
Appears a recompile is needed; not sure how to do that, however several posts on the error. One at
https://github.com/tensorflow/tensorflow/issues/6896
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  installing anaconda packages offline HulkHogansArmsArePythons 4 913 Feb-18-2020, 08:23 PM
Last Post: jefsummers
  Tensorflow offline build from source on CentOS 7 riotto 3 1,538 Mar-21-2019, 07:16 PM
Last Post: riotto
  [Plot a stacked bar graph using plotly offline mode] niks250891 1 3,150 Apr-22-2018, 02:11 PM
Last Post: niks250891
  AttributeError: module 'plotly' has no attribute 'offline' charlesczc 8 9,745 Jan-21-2018, 08:34 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020