SpeechRecognition

SpeechRecognition

Python library for performing speech recognition, with support for several engines and APIs, online and offline. Github

Speech recognition engine/API support:

  • CMU Sphinx (works offline)

  • Google Speech Recognition

  • Google Cloud Speech API

  • Wit.ai

  • Microsoft Bing Voice Recognition

  • Houndify API

  • IBM Speech to Text

root@edison:~# pip install SpeechRecognition
root@edison:~# pip install wit

Examples

See the examples/ directory in the repository root for usage examples:

  • Recognize speech input from the microphone

  • Transcribe an audio file

  • Save audio data to an audio file

  • Show extended recognition results

  • Calibrate the recognizer energy threshold for ambient noise levels (see recognizer_instance.energy_threshold for details)

  • Listening to a microphone in the background

  • Various other useful recognizer features

Another Example

Last updated