Speech recognition: Difference between revisions
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
#*Install PyAudio using APT: execute <small>sudo apt-get install python-pyaudio python3-pyaudio</small> in a terminal. | #*Install PyAudio using APT: execute <small>sudo apt-get install python-pyaudio python3-pyaudio</small> in a terminal. | ||
# Pocketsphinx: | # Pocketsphinx: | ||
## Another way (not sure if it is different or supplementary): | ## Another way (not sure if it is different or supplementary): | ||
##*<small>pip3 install pocketsphinx</small> | ##*<small>pip3 install pocketsphinx</small> |
Revision as of 16:25, 23 March 2018
For Ubuntu:
Requirements: Python2.6, 2.7, or 3.3+
https://pypi.python.org/pypi/SpeechRecognition
- SpeechRecognition 3.8.1
- sudo pip3 install SpeechRecognition
- To quickly try it out, run python -m speech_recognition after installing.
- PyAudio (for microphone users):
- Install PyAudio using APT: execute sudo apt-get install python-pyaudio python3-pyaudio in a terminal.
- Pocketsphinx:
- Another way (not sure if it is different or supplementary):
- pip3 install pocketsphinx
- Test+Errors:
- Try this: pocketsphinx_continuous
- If you find this error error while loading shared libraries: libpocketsphinx.so.3: cannot open shared object file: No such file or directory do this sudo nano /etc/ld.so.conf and add
- include usr/local/lib
- include usr/
- Install other languages
- Another way (not sure if it is different or supplementary):
- Pocketsphinx Python:
- sudo pip3 install --upgrade pip setuptools wheel
- sudo pip3 install --upgrade pocketsphinx
- Examples:
- Transcribe an audio file: run python3 audio_transcribe.py
- Save audio data to an audio file: run python3 write_audio.py