Agent Framework plugin for voice synthesis with Uplift AI.
Project description
LiveKit Plugins - Uplift
This plugin provides TTS integration for Uplift AI into the LiveKit Agent Framework.
Installation
pip install livekit-plugins-uplift
Pre-requisites
You'll need an API key from UpliftAI. It can be set as an environment variable: UPLIFT_AI_API_KEY
Urdu Script Requirements
The Uplift TTS is designed to work with Urdu script. The TTS should only receive text in Urdu script - not Roman Urdu. This can be achieved via basic prompt engineering to ensure your LLM generates output in proper Urdu script.
Example
from livekit.plugins import uplift
async def entrypoint(ctx: JobContext):
initial_ctx = llm.ChatContext().append(
role="system",
text=(
"You're an Urdu speaking livebot on a LiveKit call. "
"No matter what, you should generate Urdu responses, in urdu script, no matter what. "
"It should not be in Roman Urdu, it should be in Urdu script. "
),
)
await ctx.connect(auto_subscribe=AutoSubscribe.AUDIO_ONLY)
assistant = VoicePipelineAgent(
vad=silero.VAD.load(),
stt=openai.STT(language="ur"),
llm=openai.LLM(),
tts=uplift.TTS(voice="v_30s70t3a"),
chat_ctx=initial_ctx,
fnc_ctx=fnc_ctx,
)
assistant.start(ctx.room)
await assistant.say("ہیلو، آپ کیسے ہیں؟", allow_interruptions=True)
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_uplift-0.1.9.tar.gz.
File metadata
- Download URL: livekit_plugins_uplift-0.1.9.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8f18c6566f7a5d478acaf93aa6a3b454d020c12bf5b6be9543846aa47e2a50e
|
|
| MD5 |
fdf548d1adffe8699d845658c213226d
|
|
| BLAKE2b-256 |
5a1c5ad9eeb71f4eccb972b75dbc0df8a8949e938bc24938eef34bd20e5aedd5
|
File details
Details for the file livekit_plugins_uplift-0.1.9-py3-none-any.whl.
File metadata
- Download URL: livekit_plugins_uplift-0.1.9-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cba29adabb51a29dd0c04186e4a0841b7718969908183674ca43a4f003b64c3
|
|
| MD5 |
d41fbcef26f4e9db1a40e8064f2858e5
|
|
| BLAKE2b-256 |
4569454c71b694754598c890d5f6b3edb63feb4fcfc62d8757bf304fe3820670
|