Skip to main content
Community-maintained integration. This service is built and maintained by deapi-ai. Pipecat does not test or officially support it. Please report issues and request changes on the source repository. Learn more about community integrations.

Overview

DeAPITTSService generates speech with deAPI’s text-to-speech models through its OpenAI-compatible speech endpoint. The default model is Kokoro, with named voices in several languages; voice design and other models are available through the same service. Each sentence is synthesized as one complete audio file and pushed as audio frames.

Source Repository

Source code, example, and issues for the deAPI integration

Demo

A recorded conversation with an agent running on deAPI

deAPI Docs

deAPI documentation for this endpoint

API Keys

Create and manage your deAPI API keys

Installation

This is a community-maintained package distributed separately from pipecat-ai:

Prerequisites

  1. deAPI account: Sign up at deAPI
  2. API key: Create a key in the deAPI panel

Required Environment Variables

  • DEAPI_API_KEY: Your deAPI API key

Configuration

str
required
deAPI API key.
str
default:"https://oai.deapi.ai/v1/audio/speech"
URL of the speech endpoint.
aiohttp.ClientSession
default:"None"
Optional session for the HTTP requests. If not provided, the service creates and closes its own.
int
default:"None"
Output sample rate in Hz. If not provided, uses the pipeline’s rate.
DeAPITTSService.Settings
default:"None"
Runtime-configurable settings. See Settings below.

Settings

Usage

See the source repository for a complete voice agent.

Compatibility

Tested with Pipecat v1.17.0. Check the source repository for the latest tested version and changelog.