Overview
Pipecat is an open-source Python framework for building real-time voice and multimodal conversational AI agents. Thepipecat-plugins-faseeh package bridges Munsit TTS into Pipecat pipelines, letting you build Arabic voice agents with low-latency streaming audio.
Prerequisites
- A Munsit AI account
- Python 3.9 or higher
API Key
Go to Munsit - API Keys, Generate an API key, then save it securely.Installation
Quick Start
Configuration Reference
Available Voice IDs
To choose a voice for your agent:- Visit the Munsit Voice Library
- Listen to different voices to find the one that best fits your use case
- Click “Copy Voice ID” button next to your chosen voice
- Use that voice ID in your code:
Pipeline Architecture
In a typical Pipecat pipeline, data flows through processors in sequence:- User speaks into the microphone
- Transport (e.g., Daily WebRTC) captures audio
- STT (e.g., Deepgram) converts speech to text
- LLM (e.g., OpenAI GPT-4o) generates a response
- Munsit TTS converts the response to Arabic audio (streaming PCM16 at 24kHz)
- Transport sends audio back to the user
TTSService base class aggregates LLM tokens into complete sentences before calling Munsit. Each sentence triggers one HTTP streaming request to the Munsit API, and PCM16 audio chunks are yielded back to the pipeline as they arrive.
Full Example
Runtime Configuration
Change voice, model, speed, or stability during an active conversation:Error Handling
The plugin yields non-fatalErrorFrame objects instead of raising exceptions. This means your pipeline continues running even if a single TTS request fails.
Common errors:
Handle errors in your application:
Troubleshooting
No audio output?- Verify
MUNSIT_API_KEYis set and valid - Ensure
voice_idexists in the Munsit voice library - Check that the pipeline sample rate matches (24000 Hz default)
- The plugin uses HTTP streaming by default for lowest latency
- Check network connectivity to
api.munsit.com - Consider using a voice with faster generation characteristics
- Ensure both
pipecat-aiandpipecat-plugins-faseehare installed - Minimum Pipecat version: 0.0.100
