Preview a voice
preview_voiceRender one bounded, rate-limited voice preview for the authenticated workspace. A text-to-speech voice speaks the caller's text (at most 200 characters); a conversation-engine voice (GPT-Live 1.1, Gemini Live, Eleven Realtime) auditions the text in a bounded native session and may rephrase it. Custom text/audio are not shared or cached; empty text keeps Skysay's sample behavior. For Eleven Realtime send only the voice fields: it refuses a non-empty agent_id, credential_id or delivery; GPT-Live 1.1 and Gemini Live refuse a non-blank credential_id. This may contact a managed provider or validate BYOK and can write preview-rate and exact voice-availability state; it is not a read-only or free preview. Returned audio is bounded in-memory WAV data, always the whole clip: a GPT-Live 1.1 or Gemini Live preview of a long sentence takes as long as the voice needs, with its first audio within 10 seconds and the whole session within 30 seconds, and fails with voice_preview_timed_out past either or voice_preview_too_large past the 1 MiB audio ceiling rather than returning a cut clip. An Eleven Realtime preview keeps its own limit: 9 seconds from when its platform slot is reserved to prepare, connect and receive the reply; past that, or past its audio size limit, it fails with voice_preview_rejected, and a reply whose start is not audible fails with voice_preview_no_speech.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"provider": "<provider>",
"model": "<model>",
"voice_id": "<voice_id>",
"language": "<language>"
},
"name": "preview_voice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Optional audition text, at most 200 characters. TTS speaks it; a native conversational engine may rephrase. Custom text/audio are not persisted or shared. Empty text uses Skysay's sample. | |
| model | Yes | ||
| agent_id | No | Optional saved hosted agent id in this workspace, at most 512 characters after trimming surrounding whitespace, for an exact pinned managed TTS voice retry. Eleven Realtime refuses a non-empty value; GPT-Live 1.1 and Gemini Live ignore it. | |
| delivery | No | Optional delivery profile; for a TTS voice the preview applies exactly the provider settings a call with the same voice_polish.delivery would use. GPT-Live 1.1 and Gemini Live ignore a valid profile; Eleven Realtime refuses one. | |
| language | Yes | ||
| provider | Yes | ||
| voice_id | Yes | ||
| project_id | Yes | ||
| credential_id | No | Optional customer-owned TTS credential id; the platform credential is never a fallback. Conversation-engine voices refuse it: Eleven Realtime any non-empty value, GPT-Live 1.1 and Gemini Live a non-blank one. | |
| organization_id | No | Optional. Defaults to the authenticated workspace; when supplied it must be that workspace's id. | |
| audio_environment | No | Optional selected ambience mixed only into this preview. For a text-to-speech voice, text must then be non-blank and explicit; a conversation-engine voice accepts custom text or uses its default sample, with ambience mixed for this request only. The language and text are never replaced. |