Skip to main content

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 the BLYNT_DEPLOYMENT_ID environment variable
  • api_key (optional): Blynt API key for Bearer auth. Falls back to the BLYNT_API_KEY environment variable
  • session_context (optional): BlyntSessionContext with facts (Fact name/value) and hints (DeclaredValues) sent once on start_session

Requirements

  • Python >= 3.12
  • livekit-agents >= 1.2
  • websockets >= 14.0

Metadata

Release files for livekit-blynt 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for livekit-blynt 0.2.0
File Size Uploaded
livekit_blynt-0.2.0.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for livekit-blynt 0.2.0
File Interpreter ABI Platform
livekit_blynt-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / livekit_blynt-0.2.0.tar.gz

Download URL livekit_blynt-0.2.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7e763817a79c6423556245210fbbc2627eedebc527274737bd2e611c261e262e
BLAKE2b-256 checksum
How to use checksums
415484bc0f6cbf33119f47e989b8e202196278c0b3ded9a5b79015a54e5060fc
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / livekit_blynt-0.2.0-py3-none-any.whl

Download URL livekit_blynt-0.2.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
278359ddb457f67a6c89122da336581536ede4f67623dbcbc733949132dab06a
BLAKE2b-256 checksum
How to use checksums
45219c62cf6246c4d4d2caca2aab063c79be809f144ed90f1b32c640c6a598f9
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page