Skip to main content

LiveKit Plugins - Uplift

This plugin provides TTS integration for Uplift AI into the LiveKit Agent Framework. You can also find official documentation of Uplift API

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)

Metadata

Release files for livekit-plugins-uplift 0.2.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for livekit-plugins-uplift 0.2.9
File Size Uploaded
livekit_plugins_uplift-0.2.9.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for livekit-plugins-uplift 0.2.9
File Interpreter ABI Platform
livekit_plugins_uplift-0.2.9-py3-none-any.whl Python 3 none any Details

Total release size: 21.4 kB

Release files / livekit_plugins_uplift-0.2.9.tar.gz

Download URL livekit_plugins_uplift-0.2.9.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ec411b6aee617f30341f5ad6bfc8a7001e321757ae5b80ed979facffe20c1a1a
BLAKE2b-256 checksum
How to use checksums
749b8aef3dcaed9a0826ea09423f1726c1aa9ee9eac1f91a6a61c9d0a838113a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / livekit_plugins_uplift-0.2.9-py3-none-any.whl

Download URL livekit_plugins_uplift-0.2.9-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d836575ca3b9ccd3031261f2999d1a691b76003eed0ad8a287e4e4f9944b16ce
BLAKE2b-256 checksum
How to use checksums
8d4678379b61dd28887e75b212b8b716c6f60169b522539412c1207012a9e83e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.2.9 This release

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page