This release is a pre-release and may not be stable for production use.
LiveKit Plugin - Blynt STT
Blynt Speech-to-Text plugin for LiveKit Agents, providing real-time speech recognition through Blynt's ASR API.
Features
- Real-time streaming speech recognition
- Support for interim and final transcriptions
- Deployment-scoped, Bearer-authenticated WebSocket connection to the Blynt API
Installation
# Using pip
pip install livekit-blynt
# Using uv
uv add livekit-blynt
Usage
The plugin connects to a Blynt deployment, so you must supply a deployment_id
and an API key. Both can be passed directly or via the BLYNT_DEPLOYMENT_ID and
BLYNT_API_KEY environment variables.
from livekit.agents import AgentSession
from livekit.plugins import silero
from livekit_blynt import BlyntSTT, BlyntSTTOptions, BlyntSessionContext, Fact, DeclaredValues, STTLanguages
stt = BlyntSTT(
options=BlyntSTTOptions(
deployment_id="680989...", # or set BLYNT_DEPLOYMENT_ID
api_key="sk-...", # or set BLYNT_API_KEY
session_context=BlyntSessionContext(
facts=[Fact(name="domaine", value="immatriculation")],
hints=[DeclaredValues(values=["plaque", "AA-123-BB"])],
),
),
)
# Or, with both read from the environment:
stt = BlyntSTT(options=BlyntSTTOptions())
session = AgentSession(
stt=stt,
vad=silero.VAD.load(min_silence_duration=0.5),
# ... llm, tts
)
stt.register_session(session)
Turns are delimited from LiveKit VAD speaking events (user_state_changed, or
user_started_speaking / user_stopped_speaking on older Agents versions), so a
VAD (e.g. Silero) must be attached to the AgentSession. Call
stt.register_session(session) after constructing the session.
Note: given the ASR processes audio in between those VAD events, it is recommended
to use a VAD with a min_silence_duration of at least 0.5s to avoid splitting the
utterance into multiple Blynt decodes.
Configuration Options
BlyntSTTOptions
deployment_id(optional): Blynt deployment id to run the session against. Falls back to theBLYNT_DEPLOYMENT_IDenvironment variableapi_key(optional): Blynt API key for Bearer auth. Falls back to theBLYNT_API_KEYenvironment variablesession_context(optional):BlyntSessionContextwithfacts(Factname/value) andhints(DeclaredValues) sent once onstart_session
Requirements
- Python >= 3.12
- livekit-agents >= 1.2
- websockets >= 14.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file livekit_blynt-0.1.0a1.tar.gz.
File metadata
- Download URL: livekit_blynt-0.1.0a1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.22 {"installer":{"name":"uv","version":"0.11.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cd2fcf07e1acf96dc2c19ae9e0d7550cf8fa84e810b5c2b48d0174f0d0e2afb
|
|
| MD5 |
3335c41255dd2f154b4293e6fc18146a
|
|
| BLAKE2b-256 |
e5f09c5d7217329d9b1bee042ff95b202dce14765f4d22a7469f9537a7790f57
|
File details
Details for the file livekit_blynt-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: livekit_blynt-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.22 {"installer":{"name":"uv","version":"0.11.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
114c7f7c76d0630a05107bf6375b723c589df7432f3ac6afc5f082a174b8ede7
|
|
| MD5 |
56e1872360ea7c75cdc63b0a5fb9479f
|
|
| BLAKE2b-256 |
f861ad13ed370c3eb66dc2cda0462050a5702241e7362ed8d00209fd1e967b9e
|