Telnyx · Schema

GenerateSpeechRequest

Request body for generating speech from text.

CommunicationsCPaaSVoiceSMSIoTTelecommunicationsMessagingArtificial IntelligenceMCPVoice AIPhone NumbersInferenceNumber VerificationPhone VerificationOTP2FALookupVerifyNumber LookupCNAMIdentityFraud Prevention

Properties

Name Type Description
aws object
azure object
disable_cache boolean When `true`, bypass the audio cache and generate fresh audio.
elevenlabs object
language string Language code (e.g. `en-US`). Usage varies by provider.
minimax object
output_type string Determines the response format. `binary_output` returns raw audio bytes, `base64_output` returns base64-encoded audio in JSON.
provider string TTS provider. Required unless `voice` is provided.
resemble object
rime object
telnyx object
text string The text to convert to speech.
text_type string Text type. Use `ssml` for SSML-formatted input (supported by AWS and Azure).
voice string Voice identifier in the format `provider.model_id.voice_id` or `provider.voice_id`. Examples: `telnyx.NaturalHD.Alloy`, `Telnyx.Ultra.`, `azure.en-US-AvaMultilingualNeural`, `aws.Polly.Gener
voice_settings object Provider-specific voice settings. Contents vary by provider — see provider-specific parameter objects below.
xai object
View JSON Schema on GitHub

JSON Schema

telnyx-generate-speech-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telnyx/json-schema/telnyx-generate-speech-request-schema.json",
  "title": "GenerateSpeechRequest",
  "description": "Request body for generating speech from text.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-text-to-speech-commands-api-openapi.yml#/components/schemas/GenerateSpeechRequest",
  "properties": {
    "aws": {
      "$ref": "#/$defs/AwsProviderParams"
    },
    "azure": {
      "$ref": "#/$defs/AzureProviderParams"
    },
    "disable_cache": {
      "default": false,
      "description": "When `true`, bypass the audio cache and generate fresh audio.",
      "type": "boolean"
    },
    "elevenlabs": {
      "$ref": "#/$defs/ElevenLabsProviderParams"
    },
    "language": {
      "description": "Language code (e.g. `en-US`). Usage varies by provider.",
      "type": "string"
    },
    "minimax": {
      "$ref": "#/$defs/MinimaxProviderParams"
    },
    "output_type": {
      "default": "binary_output",
      "description": "Determines the response format. `binary_output` returns raw audio bytes, `base64_output` returns base64-encoded audio in JSON.",
      "enum": [
        "binary_output",
        "base64_output"
      ],
      "type": "string"
    },
    "provider": {
      "description": "TTS provider. Required unless `voice` is provided.",
      "enum": [
        "aws",
        "telnyx",
        "azure",
        "elevenlabs",
        "minimax",
        "rime",
        "resemble",
        "xai"
      ],
      "type": "string"
    },
    "resemble": {
      "$ref": "#/$defs/ResembleProviderParams"
    },
    "rime": {
      "$ref": "#/$defs/RimeProviderParams"
    },
    "telnyx": {
      "$ref": "#/$defs/TelnyxProviderParams"
    },
    "text": {
      "description": "The text to convert to speech.",
      "type": "string"
    },
    "text_type": {
      "description": "Text type. Use `ssml` for SSML-formatted input (supported by AWS and Azure).",
      "enum": [
        "text",
        "ssml"
      ],
      "type": "string"
    },
    "voice": {
      "description": "Voice identifier in the format `provider.model_id.voice_id` or `provider.voice_id`. Examples: `telnyx.NaturalHD.Alloy`, `Telnyx.Ultra.<voice_id>`, `azure.en-US-AvaMultilingualNeural`, `aws.Polly.Generative.Lucia`. When provided, `provider`, `model_id`, and `voice_id` are extracted automatically and take precedence over individual parameters.",
      "type": "string"
    },
    "voice_settings": {
      "additionalProperties": true,
      "description": "Provider-specific voice settings. Contents vary by provider — see provider-specific parameter objects below.",
      "type": "object"
    },
    "xai": {
      "$ref": "#/$defs/XAIProviderParams"
    }
  },
  "type": "object",
  "$defs": {
    "AwsProviderParams": {
      "description": "AWS Polly provider-specific parameters.",
      "properties": {
        "language_code": {
          "description": "Language code (e.g. `en-US`, `es-ES`).",
          "type": "string"
        },
        "lexicon_names": {
          "description": "List of lexicon names to apply.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "output_format": {
          "description": "Audio output format.",
          "type": "string"
        },
        "sample_rate": {
          "description": "Audio sample rate.",
          "type": "string"
        },
        "text_type": {
          "description": "Input text type.",
          "enum": [
            "text",
            "ssml"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "AzureProviderParams": {
      "description": "Azure Cognitive Services provider-specific parameters.",
      "properties": {
        "api_key": {
          "description": "Custom Azure API key. If not provided, the default Telnyx key is used.",
          "type": "string"
        },
        "deployment_id": {
          "description": "Custom Azure deployment ID.",
          "type": "string"
        },
        "effect": {
          "description": "Azure audio effect to apply.",
          "type": "string"
        },
        "gender": {
          "description": "Voice gender preference.",
          "type": "string"
        },
        "language_code": {
          "default": "en-US",
          "description": "Language code (e.g. `en-US`).",
          "type": "string"
        },
        "output_format": {
          "default": "audio-24khz-160kbitrate-mono-mp3",
          "description": "Azure audio output format.",
          "type": "string"
        },
        "region": {
          "description": "Azure region (e.g. `eastus`, `westeurope`).",
          "type": "string"
        },
        "text_type": {
          "default": "text",
          "description": "Input text type. Use `ssml` for SSML-formatted input.",
          "enum": [
            "text",
            "ssml"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "ElevenLabsProviderParams": {
      "description": "ElevenLabs provider-specific parameters.",
      "properties": {
        "api_key": {
          "description": "Custom ElevenLabs API key. If not provided, the default Telnyx key is used.",
          "type": "string"
        },
        "language_code": {
          "description": "Language code.",
          "type": "string"
        },
        "voice_settings": {
          "additionalProperties": true,
          "description": "ElevenLabs voice settings (stability, similarity_boost, etc.).",
          "type": "object"
        }
      },
      "type": "object"
    },
    "MinimaxProviderParams": {
      "description": "Minimax provider-specific parameters.",
      "properties": {
        "language_boost": {
          "description": "Language code to boost pronunciation for.",
          "type": "string"
        },
        "pitch": {
          "description": "Pitch adjustment.",
          "type": "integer"
        },
        "response_format": {
          "description": "Audio output format.",
          "type": "string"
        },
        "speed": {
          "description": "Speech speed multiplier.",
          "format": "float",
          "type": "number"
        },
        "vol": {
          "description": "Volume level.",
          "format": "float",
          "type": "number"
        }
      },
      "type": "object"
    },
    "ResembleProviderParams": {
      "description": "Resemble AI provider-specific parameters.",
      "properties": {
        "api_key": {
          "description": "Custom Resemble API key.",
          "type": "string"
        },
        "format": {
          "description": "Audio output format.",
          "type": "string"
        },
        "precision": {
          "description": "Synthesis precision.",
          "type": "string"
        },
        "sample_rate": {
          "description": "Audio sample rate.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "RimeProviderParams": {
      "description": "Rime provider-specific parameters.",
      "properties": {
        "response_format": {
          "description": "Audio output format.",
          "type": "string"
        },
        "sampling_rate": {
          "description": "Audio sampling rate in Hz.",
          "type": "integer"
        },
        "voice_speed": {
          "description": "Voice speed multiplier.",
          "format": "float",
          "type": "number"
        }
      },
      "type": "object"
    },
    "TelnyxProviderParams": {
      "description": "Telnyx provider-specific parameters. Use `voice_speed` and `temperature` for `Natural` and `NaturalHD` models. For the `Ultra` model, use `voice_speed`, `volume`, and `emotion`.",
      "properties": {
        "emotion": {
          "description": "Emotion control for the Ultra model. Adjusts the emotional tone of the synthesized speech.",
          "enum": [
            "neutral",
            "happy",
            "sad",
            "angry",
            "fearful",
            "disgusted",
            "surprised"
          ],
          "type": "string"
        },
        "response_format": {
          "default": "mp3",
          "description": "Audio response format.",
          "type": "string"
        },
        "sampling_rate": {
          "default": 24000,
          "description": "Audio sampling rate in Hz.",
          "type": "integer"
        },
        "temperature": {
          "default": 0.5,
          "description": "Sampling temperature. Applies to `Natural` and `NaturalHD` models only.",
          "format": "float",
          "type": "number"
        },
        "voice_speed": {
          "default": 1.0,
          "description": "Voice speed multiplier. Applies to all models. Range: 0.5 to 2.0.",
          "format": "float",
          "maximum": 2.0,
          "minimum": 0.5,
          "type": "number"
        },
        "volume": {
          "default": 1.0,
          "description": "Volume level for the Ultra model. Range: 0.0 to 2.0.",
          "format": "float",
          "maximum": 2.0,
          "minimum": 0.0,
          "type": "number"
        }
      },
      "type": "object"
    },
    "XAIProviderParams": {
      "description": "xAI provider-specific parameters.",
      "properties": {
        "language": {
          "default": "auto",
          "description": "Language code, or `auto` to detect.",
          "type": "string"
        },
        "output_format": {
          "default": "mp3",
          "description": "Audio output format.",
          "enum": [
            "mp3",
            "wav",
            "pcm",
            "mulaw",
            "alaw"
          ],
          "type": "string"
        },
        "sample_rate": {
          "default": 24000,
          "description": "Audio sample rate in Hz.",
          "enum": [
            8000,
            16000,
            22050,
            24000,
            44100,
            48000
          ],
          "type": "integer"
        },
        "voice_id": {
          "description": "xAI voice identifier.",
          "enum": [
            "eve",
            "ara",
            "rex",
            "sal",
            "leo"
          ],
          "type": "string"
        }
      },
      "required": [
        "voice_id"
      ],
      "type": "object"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/telnyx-generate-speech-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.