Registry / ai-ml / livekit-plugins-speechmatics

livekit-plugins-speechmatics

JSON →
library1.5.18pypypiunverified

Plugin for the LiveKit Agents Framework integrating Speechmatics for real-time speech-to-text. Current version 1.5.18, requires Python ≥3.10, released approximately weekly.

pip install livekit-plugins-speechmatics
INSTALL
IMPORT
SIG · LIVEKIT-PLUGINS-SP
L
livekit-plugins-speechmatics
ai-mlpythonv1.5.18
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SpeechmaticsSTT
from livekit.plugins.speechmatics import SpeechmaticsSTT
from livekit.plugins.speechmatics import SpeechmaticsSTT

Minimal example using SpeechmaticsSTT with LiveKit Agents.

import os from livekit import api from livekit.agents import AutoSubscribe, JobContext, WorkerOptions, cli from livekit.plugins.speechmatics import SpeechmaticsSTT async def entrypoint(job: JobContext): stt = SpeechmaticsSTT( api_key=os.environ.get('SPEECHMATICS_API_KEY', '') ) await job.connect() async for audio_frame in job.agent.audio_stream: if isinstance(audio_frame, api.rtc.AudioFrame): stt_stream = stt.stream() stt_stream.push_frame(audio_frame) async for event in stt_stream: print(event) if __name__ == "__main__": cli.run_app(WorkerOptions(entrypoint_fnc=entrypoint))
Debug
Known issues
breakingThe import path changed from `livekit_plugins_speechmatics` to `livekit.plugins.speechmatics` in v0.4.0.
fix
Use `from livekit.plugins.speechmatics import SpeechmaticsSTT`.
affects: >=0.4.0
gotchaThe `SpeechmaticsSTT` class requires an `api_key` parameter or the `SPEECHMATICS_API_KEY` environment variable. It will not fall back to a default.
fix
Set the environment variable or pass `api_key` explicitly.
affects: all
gotchaThe `stream()` method returns an async generator; you must iterate over it with `async for` or call `next()` appropriately.
fix
Use `async for event in stt_stream:` to receive transcription events.
affects: all
Upgrade
Version history
1.5.18latest on PyPI · released Jun 5, 2026
Audit
Dependencies
livekit-agentsrequiredCore framework dependency
livekit-apirequiredFor STTStream and types
Agent activity
7 hits · last 30 days
node
6
Resources
livekit-plugins-speechmatics — pip install livekit-plugins-speechmatics · libregistry