speechmatics-voice
Speechmatics Voice Agent Python client for Real-Time API
What it is and what it does
Speechmatics Voice is a higher-level Python wrapper around the Speechmatics Real-Time API that simplifies building voice-enabled applications. Instead of handling raw word-level transcription events, it provides intelligent speech segmentation (grouping words into meaningful segments per speaker), automatic turn detection to know when speakers finish, and speaker management for multi-speaker scenarios. It comes with preset configurations optimized for conversational AI, voice agents, note-taking, and live captioning, so you can start with sensible defaults rather than tuning parameters from scratch.
The SDK is designed for async Python applications that stream audio and need clean, structured speech segments with speaker IDs rather than low-level transcription events. It depends on speechmatics-rt for the underlying real-time connection, pydantic for configuration validation, and numpy for audio handling. Installation is straightforward; optional ML features require additional dependencies but are gracefully disabled if not present.
Use it for:
- Build a conversational AI chatbot that detects when the user finishes speaking and responds appropriately
- Create a real-time meeting transcription tool that labels segments by speaker and formats them for note-taking
- Implement live captioning for video streams or broadcasts with automatic speaker identification
- Develop a voice agent that handles multi-turn dialogue with adaptive or ML-based turn detection
- Stream microphone audio from a web or mobile app to transcribe speech with minimal latency
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python SDK for building real-time voice applications with automatic speech segmentation, turn detection, and speaker management on top of the Speechmatics Real-Time API.
Yes, if you are building a Python voice application that needs real-time transcription with speaker awareness and turn detection. The low install friction, active maintenance, MIT license, and preset configurations make it a practical choice. Verify that optional ML features meet your production requirements and that latency characteristics align with your use case before committing to a large deployment.
Install
speechmatics-voice on PyPI
pip
pip install speechmatics-voiceuv
uv add speechmatics-voicepoetry
poetry add speechmatics-voiceInstalling speechmatics-voice
Before you install
Low friction installation with a pure-Python wheel. Active maintenance with recent commits; repo is not archived. Requires speechmatics-rt, pydantic, and numpy as runtime dependencies.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install speechmatics-voice
import asyncio
from speechmatics.voice import VoiceAgentClient, AgentServerMessageType
client = VoiceAgentClient(api_key="your_key", preset="scribe")
@client.on(AgentServerMessageType.ADD_SEGMENT)
def on_segment(message):
for segment in message["segments"]:
print(f"{segment['speaker_id']}: {segment['text']}")
await client.connect()
await client.send_audio(audio_chunk)
await client.disconnect()
Requires Python 3.9 or later; optional ML-based turn detection and VAD features require additional dependencies that are gracefully disabled if not installed.
Verify before relying
- Whether ML-based turn detection (SMART_TURN) and VAD features work reliably without manual model download in production environments
- Performance characteristics and latency guarantees under high-concurrency or high-volume transcription workloads
- Compatibility with specific voice frameworks mentioned in keywords but not detailed in the excerpt
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — speechmatics-rt, pydantic, numpy |
| Maintenance | actively maintained — 200 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 209,540/month — #9,512 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: speechmatics_voice-0.2.8-py3-none-any.whl
Keywords: speechmatics, conversational-ai, voice, agents, websocket, real-time, pipecat, livekit
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
livekit-plugins-speechmaticsIntegrates Speechmatics speech-to-text into…
permissive · top 15,000 on PyPI
speechmatics-rtAsync Python client for real-time…
permissive · top 15,000 on PyPI
speechmatics-batchAsync Python client for submitting audio files…
permissive · top 15,000 on PyPI
pyannoteai-sdkClient library for pyannoteAI's speaker…
unclear · top 5,000 on PyPI
livekit-plugins-sonioxIntegrates Soniox speech-to-text and…
permissive · top 15,000 on PyPI
deepgram-sdkOfficial Python SDK for Deepgram's speech…
permissive · top 5,000 on PyPI
humePython SDK for integrating Hume AI's empathic…
permissive · top 15,000 on PyPI
dashscopePython SDK for Alibaba Cloud Model Studio…
permissive · top 5,000 on PyPI
elevenlabsOfficial Python SDK for ElevenLabs…
permissive · top 5,000 on PyPI
whisperxWhisperX performs fast automatic speech…
permissive · top 5,000 on PyPI