---
title: "Preview Speech"
method: POST
path: "/v2/call-agent/preview-speech"
tags: ["call-agent"]
---

# Preview Speech

`POST /v2/call-agent/preview-speech`

## Request

- Base URL: `https://api.stuut.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stuut.ai/v2/call-agent/preview-speech`
- Auth: HTTP bearer

Preview Speech

Synthesize a short text snippet with the call agent's voice (for the pronunciation editor's
audio preview). Returns base64-encoded audio with its MIME type.

## Request body

- PreviewSpeechRequest: Synthesize a short snippet of text with the org's call-agent voice.
  - `text` string, required: Text to synthesize (e.g. a name or its phonetic respelling).

## Response `200`

Successful Response

- PreviewSpeechResponse: Synthesized audio for a previewed snippet.
  - `content` string, required: Base64-encoded audio; use content_type for playback.
  - `content_type` string, required: MIME type of the encoded audio.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stuut/apis/stuut-api.md) - [All operations](https://skmtc.dev/stuut/apis/stuut-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stuut/apis/stuut-api/revisions/ff0ad16a55ff?raw)
