Overview
MurfTTSService provides real-time text-to-speech synthesis using
Murf AI’s WebSocket streaming API. It supports voice
customization options including style, rate, pitch, variation, and custom
pronunciation dictionaries.
Source Repository
Source code, examples, and issues for the Murf AI integration
PyPI Package
The
pipecat-murf-tts package on PyPIMurf API
Learn more about the Murf AI API and available voices
API Keys
Sign up and obtain your Murf API key from the dashboard
Installation
This is a community-maintained package distributed separately frompipecat-ai:
Prerequisites
Murf Account Setup
Before using the Murf TTS service, you need:- Murf Account: Sign up at Murf AI
- API Key: Obtain your API key from the dashboard
Required Environment Variables
MURF_API_KEY: Your Murf API key for authentication
Configuration
Murf API key for authentication.
WebSocket URL for the Murf TTS API.
Voice customization parameters. See Input Parameters
below.
How to aggregate incoming text before synthesis.
Input Parameters
Voice settings passed via theparams constructor argument using
MurfTTSService.InputParams(...).
| Parameter | Type | Default | Range/Options | Description |
|---|---|---|---|---|
voice_id | str | "Matthew" | Any valid Murf voice ID | Voice identifier for TTS synthesis. |
style | str | "Conversational" | Voice-specific styles | Voice style (e.g., "Conversational", "Narration"). |
rate | int | 0 | -50 to 50 | Speech rate adjustment. |
pitch | int | 0 | -50 to 50 | Pitch adjustment. |
pronunciation_dictionary | dict | None | Custom pronunciation mappings | Dictionary for custom word pronunciations. |
variation | int | 1 | 0 to 5 | Variation in pause, pitch, and speed (Gen2 only). |
multi_native_locale | str | None | Language codes (e.g., "en-US") | Language for Gen2 model audio. |
model | str | "FALCON" | "FALCON", "GEN2" | The model to use for audio output. |
sample_rate | int | 44100 | 8000, 16000, 24000, 44100, 48000 | Audio sample rate in Hz. |
channel_type | str | "MONO" | "MONO", "STEREO" | Audio channel configuration. |
format | str | "PCM" | "MP3", "WAV", "FLAC", "ALAW", "ULAW", "PCM", "OGG" | Audio output format. |
Available parameters and defaults are defined by the integration. See the
source repository for the
authoritative, up-to-date list.