Reson8 STT plugin for LiveKit Agents
Project description
livekit-plugins-reson8
Reson8 STT plugin for LiveKit Agents.
A single reson8.STT class that adapts to how LiveKit uses it:
- Streaming (
stream(), used by voice agents) connects to the turn-aware endpoint. Reson8 detects conversational turn boundaries server-side: it emits a preflight transcript (an eager guess that the turn is over) that your agent can start responding to, then confirms it as a final transcript — or cancels it if the speaker keeps talking. Great for low-latency voice agents. - Batch (
recognize()) transcribes pre-recorded audio and returns the full transcript.
Any language
Reson8 supports any language. Leave language unset to auto-detect the
spoken language, or pass any language code (e.g. "en", "nl", "es",
"de", "fr", ...) to pin it.
reson8.STT() # auto-detects the spoken language
reson8.STT(language="en") # English
reson8.STT(language="es") # Spanish
reson8.STT(language="nl") # Dutch
Installation
pip install livekit-plugins-reson8
Usage
from livekit.plugins import reson8
stt = reson8.STT(
api_key="your-api-key", # or set RESON8_API_KEY
# language is auto-detected when omitted; pass any code to pin it
)
With a Voice Agent
from livekit.agents.voice import VoiceAgent
from livekit.plugins import openai, reson8
agent = VoiceAgent(
stt=reson8.STT(), # streaming + turn detection, any language
llm=openai.LLM(),
tts=openai.TTS(),
)
Transcribing a file
event = await reson8.STT().recognize(audio_buffer)
print(event.alternatives[0].text)
Configuration
| Parameter | Env var | Default |
|---|---|---|
api_key |
RESON8_API_KEY |
required |
api_url |
RESON8_API_URL |
https://api.reson8.dev |
language |
— | None (auto-detect; accepts any language code) |
sample_rate |
— | 16000 |
encoding |
— | "pcm_s16le" |
channels |
— | 1 |
custom_model_id |
— | None (custom model for recognition biasing) |
include_timestamps |
— | False |
include_words |
— | False |
include_confidence |
— | False (batch recognition) |
include_language |
— | False (report detected language while streaming) |
STT.update_options(...) changes settings at runtime; active streaming sessions
reconnect automatically to apply them.
Running the example
cp .env.example .env
# Fill in your keys
python examples/voice_agent.py dev
Project details
Release history Release notifications | RSS feed
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_plugins_reson8-0.2.0.tar.gz.
File metadata
- Download URL: livekit_plugins_reson8-0.2.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5417ca83e3405d16828ea50476bf9459bce4dd2503db38da8f15a6b2a1222e5
|
|
| MD5 |
940dd3844e8429a7631ae8dff4338e5f
|
|
| BLAKE2b-256 |
f2eab740885f5cada453a4b8ec6e7d57b2d6ded84734fc402a9e9a295a873633
|
File details
Details for the file livekit_plugins_reson8-0.2.0-py3-none-any.whl.
File metadata
- Download URL: livekit_plugins_reson8-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2e5a063e69fe6ca602d701c1142d5411deb2dc421efd3bd727a40bfdf80dc5b
|
|
| MD5 |
ae3d014f8e125df40e09a05967ad12e7
|
|
| BLAKE2b-256 |
0c448f14f131cc13df82760cee7e1515dd2e4245ddab287cb5ba24848a22fa0e
|