Skip to main content

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. 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)

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_uplift-0.2.6.tar.gz (9.9 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_uplift-0.2.6-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file livekit_plugins_uplift-0.2.6.tar.gz.

File metadata

  • Download URL: livekit_plugins_uplift-0.2.6.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for livekit_plugins_uplift-0.2.6.tar.gz
Algorithm Hash digest
SHA256 d262f345acfb463f2f62ae84d31efbd40c9ee39a68a2852bce95e53f1868cc59
MD5 d8952674b6c92279b36ecbc67d93c9fd
BLAKE2b-256 7b21404e03ac55a78160dbe31e1f8b59bd751d54bdd05453aacabfdc16c64d81

See more details on using hashes here.

File details

Details for the file livekit_plugins_uplift-0.2.6-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_uplift-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8f305de98bef9c06bfc6d381a4c2dc29b2d0a5563e244e6af1f91ec06ef4dfe2
MD5 fab2d89a2a03acd5d8577e5e48abd67e
BLAKE2b-256 95fc0f48af5d6f9b4622baa5c93dbc539c604faed60527802ff7a2d58347f4dd

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