Skip to main content

LiveKit Agents Plugin for Murf

Project description

Livekit Murf

Murf AI Logo

Official Murf AI Text-to-Speech integration for Livekit Agents - a framework for building voice and multimodal conversational AI applications.

Note: This integration is maintained by Murf AI. As the official provider of the TTS service, we are committed to actively maintaining and updating this integration.

Installation

pip install livekit-murf

Livekit Starter Project

from livekit.agents import JobContext, WorkerOptions, cli, JobProcess, get_job_context
from livekit.agents.voice import Agent, AgentSession
from livekit.plugins import murf, openai, silero, deepgram

class MyAgent(Agent):
    def __init__(self) -> None:
        super().__init__(
            instructions="You are a voice agent build using Murf TTS",
            stt=deepgram.STT(model="nova-3"),
            llm=openai.LLM(model="gpt-4o"),
            tts=murf.TTS(voice="en-US-matthew", style="Conversation"),
            vad=get_job_context().proc.userdata["vad"],
        )

    async def on_enter(self):
        await self.session.say("Hi, I am a voice agent powered by Murf, how can I help you?")



async def entrypoint(ctx: JobContext):
    await ctx.connect()
    ctx.log_context_fields = {
        "room": ctx.room.name,
    }

    session = AgentSession()

    await session.start(
        agent=MyAgent(),
        room=ctx.room
    )


def prewarm(proc: JobProcess):
    proc.userdata["vad"] = silero.VAD.load()


if __name__ == "__main__":
    cli.run_app(WorkerOptions(entrypoint_fnc=entrypoint, prewarm_fnc=prewarm))

Pre-requisites

You'll need an API key from Murf AI. It can be set as an environment variable: MURF_API_KEY

Compatibility: Requires livekit-agents >= 1.2.18.

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_murf-0.1.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livekit_murf-0.1.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file livekit_murf-0.1.1.tar.gz.

File metadata

  • Download URL: livekit_murf-0.1.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for livekit_murf-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2a51efb57ebb1f686515ded57d296b11e369e345121768aca377da5a59ee3787
MD5 36b6d04b52227373565ae22885229d1a
BLAKE2b-256 3528bd8c701700d97015faa2179686f6b11c816097ca62605ae7d366a048db55

See more details on using hashes here.

File details

Details for the file livekit_murf-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: livekit_murf-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for livekit_murf-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 392711d4955f0c40715e2d846c9d6c641d552136d4b247670571473c185761e8
MD5 a5d5b8a23e54e630348fc5832d993df7
BLAKE2b-256 63a1be254ddd81245bafe378a66917d455c1c995246cddf087b0ba5b4bd639d8

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