Skip to main content

Overview

Pipecat is an open-source Python framework for building real-time voice and multimodal conversational AI agents. The pipecat-plugins-faseeh package bridges Munsit TTS into Pipecat pipelines, letting you build Arabic voice agents with low-latency streaming audio.

Prerequisites

API Key

Go to Munsit - API Keys, Generate an API key, then save it securely.
Your API key is only shown once. Save it securely.

Installation

Quick Start

Configuration Reference

Available Voice IDs

To choose a voice for your agent:
  1. Visit the Munsit Voice Library
  2. Listen to different voices to find the one that best fits your use case
  3. Click “Copy Voice ID” button next to your chosen voice
  4. Use that voice ID in your code:

Pipeline Architecture

In a typical Pipecat pipeline, data flows through processors in sequence:
  1. User speaks into the microphone
  2. Transport (e.g., Daily WebRTC) captures audio
  3. STT (e.g., Deepgram) converts speech to text
  4. LLM (e.g., OpenAI GPT-4o) generates a response
  5. Munsit TTS converts the response to Arabic audio (streaming PCM16 at 24kHz)
  6. Transport sends audio back to the user
Pipecat’s 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-fatal ErrorFrame 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_KEY is set and valid
  • Ensure voice_id exists in the Munsit voice library
  • Check that the pipeline sample rate matches (24000 Hz default)
High latency?
  • 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
Import errors?
  • Ensure both pipecat-ai and pipecat-plugins-faseeh are installed
  • Minimum Pipecat version: 0.0.100