--- id: speechrecognition version: "3.17.0" license: BSD-3-Clause license_treatment: permissive maintenance: active --- # SpeechRecognition — Library for performing speech recognition, with support for several engines and APIs, online and offline. License: permissive · Maintenance: active · Downloads: 11.7M/mo ## What it is and what it does SpeechRecognition is a Python library that wraps multiple speech recognition engines and APIs into a unified interface. It supports both online services (Google, OpenAI Whisper, Azure, IBM, Groq, Cohere) and offline engines (CMU Sphinx, Vosk, local Whisper models), letting you choose based on accuracy, latency, and privacy needs. The library handles microphone input, audio file transcription, and audio stream processing. The core use case is converting spoken audio to text in Python applications. You instantiate a Recognizer, load audio from a microphone or file, and call the appropriate recognition method for your chosen engine. Optional dependencies are only required for specific engines—the base install is lightweight. Python 3.9+ is required, and PyAudio is only needed if you want live microphone input. Use it for: - Build a voice command interface that listens to a microphone and executes actions based on recognized speech. - Transcribe recorded audio files or meeting recordings using offline or cloud-based speech recognition. - Create a chatbot or voice assistant that accepts spoken input and processes it as text. - Implement accessibility features that convert user speech to text for applications. - Prototype speech recognition workflows by switching between different engines without rewriting code. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Performs speech recognition and transcription using multiple online and offline engines, including Google, OpenAI Whisper, CMU Sphinx, and others. Yes. The package is actively maintained, has low install friction, supports modern Python versions (3.9+), carries no known vulnerabilities, and offers a practical abstraction over many speech engines. The permissive BSD-3-Clause license poses no restrictions. Install it when you need speech recognition and want to avoid vendor lock-in or when you want to experiment with multiple engines. The main gotcha is that most engines require optional dependencies or API credentials. ## Install pip install speechrecognition uv add speechrecognition poetry add speechrecognition ## Installing SpeechRecognition Before you install: Low install friction with a pure-Python wheel distribution. Actively maintained with a recent release (2026-06-17) and strong community engagement (8985 GitHub stars). Runtime dependencies are minimal; optional features require additional packages only when needed. License in practice: BSD-3-Clause permissive license allows commercial and private use with minimal restrictions, making it suitable for most projects. Quickstart: pip install SpeechRecognition from SpeechRecognition import Recognizer, Microphone recognizer = Recognizer() with Microphone() as source: audio = recognizer.listen(source) PyAudio 0.2.11+ is required only if you need microphone input; file-based transcription works without it. Most recognition engines require additional packages and API credentials. Verify before relying: - Whether all listed engines (Google, Wit.ai, Azure, Houndify, IBM, Groq, Cohere) remain actively supported or if some are deprecated. - Performance characteristics and accuracy differences between offline engines (Sphinx, Vosk, Whisper) and online APIs. - Whether PyAudio 0.2.11+ is available on all target platforms or if installation barriers exist on some systems. ## Package facts - License: BSD-3-Clause (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 11.7M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags speech recognition library, audio transcription python, voice to text, speech to text api, offline speech recognition, microphone audio input, whisper transcription, audio-processing, speech-to-text, multi-engine [View on SkillFed](https://skillfed.io/packages/speechrecognition) · [View on PyPI](https://pypi.org/project/speechrecognition/)