Skip to main content
GET
Get TTS configuration

Overview

Retrieve available TTS (Text-to-Speech) providers, models, and voices filtered by language. The TTS engine is the agent’s “voice” — it converts the LLM’s text responses into spoken audio that the caller hears. Each voice entry includes metadata such as gender and a sample audio URL so you can preview voices before selecting one. The language parameter is required. For multilingual agents, pass all language codes together to return only voices that support every language in the set.

Required Permission

agents

Query Parameters

Example cURL

Single Language

Multiple Languages

Filter by Provider

Response

Success (200)

Error Responses

404 Not Found - Missing language parameter or no matching configuration

Response Fields

Use Cases

  • Populating a voice selector with audio preview in agent configuration
  • Filtering TTS voices to only those compatible with the agent’s configured languages
  • Comparing voice options across providers to best match your brand’s tone
  • Building a voice gallery or preview feature using sample_audio_url
The language parameter is required. A request without at least one language value will return a 404 error. Use language codes from Get Languages.
For multilingual agents, pass all configured language codes together (e.g. ?language=en-IN&language=hi-IN) to find voices that support every language. This prevents selecting a voice that only works in one of the configured languages.
The provider.providerId and voiceId values map directly to the provider and voice fields in the Update Agent ttsParams object. Use the demoAudioUrl to build an audio preview feature so users can hear voices before committing to a selection.
Save the requestId from every response. You will need it if you contact Inya support to trace a specific request.

Authorizations

x-api-key
string
header
required

API key with 'agents' permission

Query Parameters

language
string[]
required

Language codes to filter by. At least one required. Repeat this parameter for multiple languages.

providerId
string

Filter results to a specific TTS provider

Example:

"gnani"

Response

TTS config retrieved successfully

status
string
Example:

"success"

requestId
string
Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

message
string
response
object