Skip to main content

Agent Framework plugin for Sub200 text-to-speech.

Project description

Sub200 plugin for LiveKit Agents

This plugin adds Sub200 text-to-speech (TTS) support to the LiveKit Agent Framework. It wraps Sub200's streaming endpoint so you can drop it into any voice pipeline.

Installation

From the repo root (workspace aware):

uv pip install -e livekit-plugins/livekit-plugins-sub200

Usage

from livekit.plugins import sub200

tts = sub200.TTS(
    model="orpheus",
    voice="aria",
)

agent = VoicePipelineAgent(
    tts=tts,
    # stt=..., llm=..., vad=..., etc.
)

See examples/voice_agents/sub200_agent.py for a full AgentSession integration.

Configuration

  • SUB200_API_KEY (env var): authentication for the Sub200 API. Leave unset only if you're running offline; requests will fail without a valid key.
  • Optional parameters on TTS:
    • model (default "orpheus")
    • voice (default "aria")
    • base_url (stream endpoint, defaults to Sub200 public API)
    • sample_rate, num_channels
    • debug_audio_dir, debug_log_dir for saving streamed audio/logs locally

Project details


Download files

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

Source Distribution

livekit_plugins_sub200-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

livekit_plugins_sub200-0.1.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file livekit_plugins_sub200-0.1.1.tar.gz.

File metadata

File hashes

Hashes for livekit_plugins_sub200-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c5e2e75365f321a3290710a75ad500ecc8c639f73a8596562955aa16d92f1eab
MD5 82ef1ceaf5c223ecaaa7fbcd6c44a40e
BLAKE2b-256 463af5bb6b83067b1f111604278d5bdcec700a1dbacca356c9197770996f058f

See more details on using hashes here.

File details

Details for the file livekit_plugins_sub200-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_sub200-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06b304449a52a982ac0b4970b897faec8908b28bb2955c6189a9d5571b78601d
MD5 75a596daccc6e4e40574a0a10d406c4a
BLAKE2b-256 bc1be2bf12c32b89c7f367b0196cd5179ace94b7db4ff8be14fbd400fce3f7b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page