Skip to main content
Pipecat is an open-source framework for building real-time, multimodal AI voice agents. With the Typecast TTS integration, you can add high-quality neural voices with emotion control to your voice AI pipelines.

What is Pipecat?

Pipecat is a Python framework that simplifies building voice AI applications. It connects various services (speech-to-text, LLMs, text-to-speech) into a unified pipeline, handling the complexity of real-time audio streaming, turn-taking, and transport protocols. A typical Pipecat pipeline looks like this:
The Typecast TTS service (pipecat-ai-typecast) integrates seamlessly into this pipeline, converting LLM responses into expressive speech.

What You Can Do

With the Typecast Pipecat integration, you can:
  • Build voice AI agents with natural, expressive voices
  • Choose from 500+ voices with different genders, ages, and styles
  • Apply emotions (happy, sad, angry, whisper, and more)
  • Use Smart Emotion for context-aware voice synthesis
  • Deploy anywhere — Daily, Twilio, or native WebRTC

Prerequisites

Before you start, make sure you have:

Installation

Install the Typecast TTS service for Pipecat:
Using uv? Run uv add pipecat-ai-typecast instead.

Quick Start

Here’s a minimal example of integrating Typecast TTS into a Pipecat pipeline:
Set your environment variables:
  • TYPECAST_API_KEY — Your Typecast API key (required)
  • TYPECAST_VOICE_ID — Voice to use (optional, defaults to a preset voice)

Configuration

The TypecastTTSService supports both preset-based and context-aware emotion control.

Basic Configuration

Preset Emotion Control

Choose from predefined emotions for consistent voice styling:

Smart Emotion (Context-Aware)

Let the AI automatically infer emotion from surrounding text:

Preset Emotion

Manually choose from 7 emotions: Normal, Happy, Sad, Angry, Whisper, Tone Up, Tone Down.Best for consistent voice styling.

Smart Emotion

AI automatically detects the best emotion from text context.Best for natural conversations.

Parameter Reference


Supported Transports

Pipecat supports multiple transport protocols. Typecast works with all of them:
Daily provides WebRTC-based video and audio infrastructure.

Complete Example

Here’s a full working example that creates a voice AI agent:

Legacy Model (ssfm-v21)

If you need to use the legacy ssfm-v21 model:
Note: ssfm-v21 supports fewer emotion presets (no whisper, toneup, tonedown).

Troubleshooting

  • Ensure TYPECAST_API_KEY environment variable is set
  • Verify your key at Typecast API Console
  • Check for extra spaces in the key
  • Confirm your transport is configured with audio_out_enabled=True
  • Check that the TTS service is included in your pipeline
  • Verify your API key has sufficient credits
  • Adjust audio_tempo within the recommended range (0.85 - 1.15)
  • Try different emotion_intensity values
  • Ensure sample rate matches your transport configuration
  • Make sure you installed pipecat-ai-typecast, not just pipecat-typecast
  • Verify Python version is 3.10 or higher
  • Check that Pipecat version is v0.0.94 or later

Resources

GitHub Repository

Source code and examples

PyPI Package

Install via pip

Pipecat Documentation

Learn more about Pipecat

Voice Library

Browse available voices