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.0.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.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_sub200-0.1.0.tar.gz
Algorithm Hash digest
SHA256 20a8c62a91193c03b58e98d302b57f01a9e78ec447990220c876bcce3ed3cf81
MD5 d169983542660d0082b22c5d98ae2b63
BLAKE2b-256 41eb4f9f12f48030549d1a91540d413ccb10799908cb69740917035db53f2e87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_sub200-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0a79b4a572d853d4e3bbe1d74d22f9ce5e30eff954ead329e8acebb8fff9d67
MD5 4c95d34813e2d68578ba3864511cb391
BLAKE2b-256 f5ea61e8eb21b6f73a82f264955e66380f5319c63e1d6c3c86d0141b4ab0a235

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