Skip to main content

Overview

Use VakyamTTSService when your voice agent should speak Indian languages. The service calls Vakyam AI and returns streaming audio you can play through any Pipecat transport. Supported languages include Tamil, Hindi, Telugu, Marathi, Gujarati, Kannada, Bengali, and Indian English. Choose a preset voice or a custom voice you have cloned in Vakyam.

Source Repository

Package source, the Daily example, and issue tracker

PyPI Package

The pipecat-vakyam package on PyPI

Vakyam AI

Product overview, voices, and supported Indian languages

API Keys

Create and manage your Vakyam AI API keys

Installation

Install the community package. It is published separately from pipecat-ai:

Prerequisites

Account and API key

  1. Create an account at Vakyam AI
  2. Copy an API key from API Keys. Keys look like vak_live_...
Set it in the environment:

Configuration

str
default:"None"
Vakyam API key. If omitted, the service reads VAKYAM_API_KEY.
VakyamTTSService.Settings
default:"None"
Voice, language, model, and speaking rate. See Settings.
str
default:"https://api.vakyam.ai"
Override this only for a non-production Vakyam endpoint.
bool
default:"False"
Permit http:// URLs that are not localhost. Leave this off in production.
int
default:"None"
Output rate in Hz (8000, 16000, 24000, or 48000). Leave unset to use the pipeline’s output sample rate.
TextAggregationMode
default:"TextAggregationMode.SENTENCE"
Defaults to sentence-sized chunks, which produces more natural spoken replies.

Settings

Pass these through VakyamTTSService.Settings(...). They can also be updated while the pipeline is running.

Languages

Voice catalogs and language coverage can change. See Voices and languages for the current list.

Usage

To speak Hindi instead of Tamil, change the language code:

Compatibility

Last tested with Pipecat v1.7.0 (pipecat-ai>=1.5,<2). See the changelog for updates.