Cumulus TalosDocs
Open Talos
On this page

Preview configured speech

Preview a fixed English or Spanish line with configured voice, model, speed and expressiveness; does not run an agent

Operation ID: voices.preview.

Request

POST /api/v1/voices/preview

  • MCP: voices_preview
  • SDK: client.voices.preview (SDK path arguments use path; MCP uses params).
  • Minimum API key role: member.
  • Idempotency: Required. Send Idempotency-Key (MCP: idempotency_key) and keep it for retries.

Read resource IDs from earlier responses and use a key for the same environment.

Integration notes

Audio is returned once. A retry with the same Idempotency-Key never synthesizes again and returns 409 if the preview request was already consumed. Use a new key only for an intentional new preview.

Input schema

Path, query and header parameters

Idempotency-Key

header parameter · Required.

Type: string. minLength: 1. maxLength: 256.

JSON request body

FieldType or valuesRequiredDescription and limits
voice_idstringRequiredminLength: 1. maxLength: 256.
modelstringRequiredminLength: 1. maxLength: 128.
language"en" · "es"Required—
speednumberRequiredAt least 0.5. At most 2.
expressivenessnumberRequiredAt least 0. At most 2.
Complete OpenAPI schema
OpenAPI JSON
{
  "parameters": [
    {
      "name": "Idempotency-Key",
      "in": "header",
      "required": true,
      "schema": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/VoicesPreviewRequest"
        }
      }
    }
  }
}

Responses

HTTP 200

Preview a fixed English or Spanish line with configured voice, model, speed and expressiveness; does not run an agent

application/json

FieldType or valuesRequiredDescription and limits
audio_base64stringRequiredminLength: 1. maxLength: 3000000.
media_type"audio/mpeg"Required—
textstringRequired—
Complete OpenAPI schema
OpenAPI JSON
{
  "200": {
    "description": "Preview a fixed English or Spanish line with configured voice, model, speed and expressiveness; does not run an agent",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/VoicesPreviewResponse200"
        }
      }
    }
  },
  "4XX": {
    "description": "Typed error (ApiError)",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/ApiError"
        }
      }
    }
  },
  "5XX": {
    "description": "Typed error (ApiError)",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/ApiError"
        }
      }
    }
  }
}

Referenced schemas

Expand the complete OpenAPI definitions for integrations that generate their own clients.

Complete OpenAPI schema
OpenAPI JSON
{
  "components": {
    "schemas": {
      "VoicesPreviewRequest": {
        "type": "object",
        "properties": {
          "voice_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "language": {
            "type": "string",
            "enum": [
              "en",
              "es"
            ]
          },
          "speed": {
            "type": "number",
            "minimum": 0.5,
            "maximum": 2
          },
          "expressiveness": {
            "type": "number",
            "minimum": 0,
            "maximum": 2
          }
        },
        "required": [
          "voice_id",
          "model",
          "language",
          "speed",
          "expressiveness"
        ],
        "additionalProperties": false
      },
      "VoicesPreviewResponse200": {
        "type": "object",
        "properties": {
          "audio_base64": {
            "type": "string",
            "minLength": 1,
            "maxLength": 3000000
          },
          "media_type": {
            "type": "string",
            "enum": [
              "audio/mpeg"
            ]
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "audio_base64",
          "media_type",
          "text"
        ],
        "additionalProperties": false
      },
      "ApiError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "unauthenticated",
                  "forbidden",
                  "not_found",
                  "conflict",
                  "invalid_request",
                  "idempotency_conflict",
                  "policy_denied",
                  "capability_unavailable",
                  "provider_unavailable",
                  "knowledge_unavailable",
                  "publication_invalid",
                  "run_not_active",
                  "rate_limited",
                  "outcome_unknown",
                  "internal"
                ]
              },
              "message": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "none",
                  "unknown"
                ]
              },
              "details": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "code",
              "message",
              "retryable",
              "outcome"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      }
    }
  }
}

Errors and recovery

See API error handling and Troubleshooting.

Content version 9b7457f4Markdown source
Preview configured speech · Cumulus Talos docs