$npx skillfedfor your agent

SpeechRecognition

Library for performing speech recognition, with support for several engines and APIs, online and offline.

Worth itPyPI Python ModulesReleased Jun 202611.7M downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — speechrecognition-3.17.0-py3-none-any.whl
v3.17.0 · released 2026-06-17 · Python >=3.9 · 3 runtime deps: typing-extensions, standard-aifc, audioop-lts

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • 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.
  • Low install friction with a pure-Python wheel distribution.

License · maintenance · safety

BSD-3-Clause (permissive) — BSD-3-Clause permissive license allows commercial and private use with minimal restrictions, making it suitable for most projects.

last release 2026-06-17 (58 days) · last repo commit 2026-07-31 · 8,985 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 11,744,922 downloads/mo, #1,367 on PyPI

Verify before relying

pip install SpeechRecognition

from SpeechRecognition import Recognizer, Microphone

recognizer = Recognizer()
with Microphone() as source:
    audio = recognizer.listen(source)
  • 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.
Same gist for agents: .md · .json

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 on this page. Verify before relying on it.

Worth it

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

speechrecognition on PyPI

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.

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.

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)

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

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
typing-extensionsstandard-aifcaudioop-lts
MaintenanceActively maintained 58 days since the last release
Last repo commit
First released
Downloads11,744,922 / month, #1,367 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: Other OSOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Multimedia :: Sound/Audio :: SpeechTopic :: Software Development :: Libraries :: Python Modules

Evidence: speechrecognition-3.17.0-py3-none-any.whl

Tags

Capabilities
speech recognition libraryaudio transcription pythonvoice to textspeech to text apioffline speech recognitionmicrophone audio inputwhisper transcription
Topics
audio-processingspeech-to-textmulti-engine
PyPI keywords
speechrecognitionvoicesphinxgooglewitapihoundifyibmsnowboy

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “microphone audio input”

  • SpeechRecognitionPerforms speech recognition and transcription using multiple online…
  • SoundCardSoundCard plays and records audio across Linux, macOS, and Windows…
  • PyAudioPyAudio provides Python bindings for PortAudio v19, enabling you to…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also pocketsphinx · vosk · whisperx · openai-whisper · assemblyai · mlx-whisper · sherpa-onnx · sherpa-onnx-core · realtimestt · pywhispercpp