LiveKit Agents Plugin for Murf
Project description
Livekit Murf
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
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_murf-0.1.0.tar.gz.
File metadata
- Download URL: livekit_murf-0.1.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52af4f62e2680e87f5ffdb97cfc96335a52d1a1e1bce345fbe301a98d6899f3d
|
|
| MD5 |
fd44a9cf16b98f8a0631db0195914999
|
|
| BLAKE2b-256 |
cb9efd0df6b2487037672a37e13a7f638cb6057e20514f2fcabfca937516b31c
|
File details
Details for the file livekit_murf-0.1.0-py3-none-any.whl.
File metadata
- Download URL: livekit_murf-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b139f5da2247f02a6710b0de598878f2f732be7fe95a882e3de001250c94fb8e
|
|
| MD5 |
88590d9e016e85abc1eacda01ebd40cd
|
|
| BLAKE2b-256 |
40a7f266cac7a14b810c066bb915dffa9c1e9ad09fbb40f7a6385d1835c20e83
|