Skip to main content

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


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_piper_tts-0.1.0.tar.gz (3.1 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_piper_tts-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_piper_tts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c5e15eaf96db155bb94d7b914b8ef931219129f64d5eae254e3ad20a8fc710b5
MD5 29ce7d30d291312a3313ab5f824c076b
BLAKE2b-256 3360c2dccaa9d693935b7034b5a44d255a059154ac7f25ebc1dc88665518c3c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_piper_tts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3d09b51b404d6ca6bc7c5df3cf2046b321bacda910199329e76f3019cf9ab97
MD5 76d20973f42bc284b4f39bf2af2423bd
BLAKE2b-256 607d717b33d288dcac77f9a03955b71f3daee074123e1f51d6681e5d8f055cbc

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