Skip to main content
pipecat-finesse is the Finesse text-to-speech service for Pipecat voice agents: a voice from the catalog or one you cloned, speaking any of 60 languages.
  • Realtime: the agent’s reply streams to Finesse as the LLM writes it, so speech starts before the reply is finished. All sentences of a turn share one Finesse context, so the voice keeps its flow across them.
  • Interruptions: when the user talks over the agent, the turn is cancelled on the Finesse server and its remaining audio is dropped. The connection stays open for the next turn.
  • Any pipeline rate: 8 kHz phone pipelines get 8 kHz audio straight from Finesse; other rates below Finesse’s native 24 kHz, such as 16 kHz, are resampled for you.

PyPI

pipecat-finesse, for Python 3.11+ and Pipecat 1.12+.

Source on GitHub

homingos/pipecat-finesse, BSD-2-Clause, the same as Pipecat.

Install

Create an API key in the dashboard under Developers → API Keys, and put it in your agent’s environment, where the service reads it:
Keep the key on your server. See Authentication.

Add it to your pipeline

Create a FinesseTTSService with the id of a ready voice and put it in your pipeline where any other TTS service goes, after the LLM:
bot.py
For a complete voice agent you can run in your browser (Deepgram, OpenAI and Finesse), see examples/voice_agent.py in the repository. To find a voice id, copy one from Voices in the dashboard, or call List voices. Cloned voices work like any other. See Voices.

Settings

FinesseTTSService.Settings holds what can change between turns: A change to the voice or language applies from the next turn. The constructor also takes:

Phone calls

Set the pipeline’s output rate to 8 kHz and Finesse sends 8 kHz audio directly, with no resampling:

Connections and limits

Each open connection holds one of your plan’s concurrent streams until it closes: see Rate limits. A refused connection reports the HTTP status and the Finesse error code, for example HTTP 429 (concurrency_limited, retry after 1s), and the service reconnects with backoff. The server closes a connection after 600 seconds without traffic, and the service reopens it so the next turn doesn’t wait to connect.

Errors

If the connection drops mid-turn, or the server cancels a turn, the turn ends with an error instead of going silent, and the next turn reconnects. See Errors for every code. The service streams over the Realtime WebSocket, so everything there applies.