A custom TTS plugin for LiveKit which can be used with self hosted Piper TTS
Project description
LiveKit Plugins Piper TTS
Pre-requisites
The following environment variables need to be set:
| Variable | Description | Example |
|---|---|---|
base_url |
Base URL of the Piper TTS server | http://localhost:5000 |
Installation
Step 1: Install the PiperTTS Server (open source)
Follow the instructions to setup the PiperTTS Web Server:
https://github.com/OHF-Voice/piper1-gpl
Step 2: Install the LiveKit Plugin
pip install livekit-plugins-piper-tts
Usage examples
from livekit.plugins import piper_tts
....
session = AgentSession(
llm=openai.LLM(model="gpt-4o-mini"),
tts=piper_tts.TTS("http://localhost:5000/"),
....
)
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_piper_tts-0.1.0.tar.gz.
File metadata
- Download URL: livekit_plugins_piper_tts-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5e15eaf96db155bb94d7b914b8ef931219129f64d5eae254e3ad20a8fc710b5
|
|
| MD5 |
29ce7d30d291312a3313ab5f824c076b
|
|
| BLAKE2b-256 |
3360c2dccaa9d693935b7034b5a44d255a059154ac7f25ebc1dc88665518c3c0
|
File details
Details for the file livekit_plugins_piper_tts-0.1.0-py3-none-any.whl.
File metadata
- Download URL: livekit_plugins_piper_tts-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3d09b51b404d6ca6bc7c5df3cf2046b321bacda910199329e76f3019cf9ab97
|
|
| MD5 |
76d20973f42bc284b4f39bf2af2423bd
|
|
| BLAKE2b-256 |
607d717b33d288dcac77f9a03955b71f3daee074123e1f51d6681e5d8f055cbc
|