Speech recognition: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 11: Line 11:
#*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.
# Install pocketsphinx: <small>pip3 install pocketsphinx</small>
# Install pocketsphinx: <small>pip3 install pocketsphinx</small>
::[https://bangladroid.wordpress.com/2017/02/16/installing-cmu-sphinx-on-ubuntu/ some tips in case of errors]
# Transcribe an audio file: execute <small>python3 [https://github.com/Uberi/speech_recognition/blob/master/examples/audio_transcribe.py audio_transcribe.py]</small>
# Transcribe an audio file: execute <small>python3 [https://github.com/Uberi/speech_recognition/blob/master/examples/audio_transcribe.py audio_transcribe.py]</small>

Revision as of 19:08, 21 March 2018

/////under construction/////

For Ubuntu:

Requirements: Python2.6, 2.7, or 3.3+
https://pypi.python.org/pypi/SpeechRecognition

  1. Install SpeechRecognition 3.8.1
    • pip install SpeechRecognition
    • To quickly try it out, run python -m speech_recognition after installing.
  2. PyAudio (for microphone users):
    • Install PyAudio using APT: execute sudo apt-get install python-pyaudio python3-pyaudio in a terminal.
  3. Install pocketsphinx: pip3 install pocketsphinx
some tips in case of errors
  1. Transcribe an audio file: execute python3 audio_transcribe.py