This is an official integration of Murf for LiveKit Agents, a framework for building voice and multimodal conversational AI applications. You can install the Python package livekit-murf to use Murf as a TTS service in your LiveKit Agents, providing high-quality voice synthesis with real-time streaming capabilities.
livekit-murf is the official Python package that integrates Murf’s high-quality text-to-speech (TTS) capabilities with LiveKit Agents. This integration enables you to add natural-sounding voice synthesis to your LiveKit-powered conversational AI applications, supporting real-time streaming and low-latency audio generation.
You can install the Murf TTS integration for LiveKit Agents using several methods:
The recommended way to install the package is using pip:
If you’re using uv as your Python package manager:
To install from source, clone the repository and install it in development mode:
If you already have a LiveKit project, you can quickly integrate Murf TTS by simply initializing the murf.TTS() class in your existing AgentSession. Make sure you have your Murf API key configured in your environment variables. You can get your Murf API key from the Murf API Dashboard:
View all configuration parameters →
This guide provides setup instructions and examples for building your first LiveKit Agent with Murf TTS.
Before running the examples above, ensure you have everything configured properly:
The examples in this guide use the Murf TTS integration along with specific LiveKit plugins for speech-to-text (Deepgram), language models (OpenAI), and voice activity detection (Silero). Install all packages used in the examples:
You’ll need API keys for the services used in your LiveKit Agent:
To keep your API keys secure, it’s recommended to use environment variables. Create a .env file in your project root:
Then load these variables in your Python code using python-dotenv:
Here’s a simple example of how to create a LiveKit Agent Worker with Murf TTS:
Save this code as agent.py and run it with:
This will start the agent in console where you can directly speak with the agent in the terminal and hear responses in Murf’s natural voice.

The murf.TTS class provides extensive configuration options to customize the voice output according to your needs.
Here’s a more advanced example showing how to customize the Murf TTS configuration with metrics and error handling:
💡 Try it out: For complete working examples and deployment guides, check out the LiveKit Agents documentation. You can use the examples above as a starting point to build your own voice agents with Murf TTS.
The Murf TTS integration for LiveKit Agents provides a comprehensive set of features for building voice applications:
If you encounter any issues or have questions about the integration:
Contributions to the integration are welcome! If you’d like to contribute, please feel free to submit a Pull Request on the GitHub repository.
This project is licensed under the MIT License. See the LICENSE file for details.