Agent Framework plugin for Kalpa text-to-speech.
Project Links
Meta
Author: LiveKit
Requires Python: >=3.10.0
Classifiers
Intended Audience
- Developers
License
- OSI Approved :: Apache Software License
Programming Language
- Python :: 3
- Python :: 3 :: Only
- Python :: 3.10
Topic
- Multimedia :: Sound/Audio
- Scientific/Engineering :: Artificial Intelligence
Kalpa plugin for LiveKit Agents
Support for text-to-speech with Kalpa in LiveKit Agents.
See the Kalpa integration docs for more information, and the Kalpa docs for the API, models and voices.
Installation
pip install livekit-plugins-kalpa
Pre-requisites
You'll need an API key from Kalpa. It can be set as an environment variable: KALPA_API_KEY. You can create one here.
Usage
from livekit.agents import AgentSession
from livekit.plugins import kalpa
session = AgentSession(
tts=kalpa.TTS(voice="18c26f49-9f9c-400c-bec9-7467f28e1db5"), # Arjun
# ... stt, llm, etc.
)
kalpa-tts-1 speaks English and Hindi. List the voices with GET https://api.kalpalabs.ai/v1/voices.
Wheel compatibility matrix
Files in release
Extras:
None
Dependencies:
livekit-agents
(>=1.8.13)