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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

livekit_blynt-0.2.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livekit_blynt-0.2.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file livekit_blynt-0.2.0.tar.gz.

File metadata

  • Download URL: livekit_blynt-0.2.0.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

Hashes for livekit_blynt-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7e763817a79c6423556245210fbbc2627eedebc527274737bd2e611c261e262e
MD5 9ed89c03b216adc8087ee647a26482c5
BLAKE2b-256 415484bc0f6cbf33119f47e989b8e202196278c0b3ded9a5b79015a54e5060fc

See more details on using hashes here.

File details

Details for the file livekit_blynt-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: livekit_blynt-0.2.0-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

Hashes for livekit_blynt-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 278359ddb457f67a6c89122da336581536ede4f67623dbcbc733949132dab06a
MD5 07612145bdb8a39bb3c3d90c2f1a62db
BLAKE2b-256 45219c62cf6246c4d4d2caca2aab063c79be809f144ed90f1b32c640c6a598f9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 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