{"command":{"effect":"write","timeoutSeconds":120,"inputSchema":{"type":"object","description":"Creates a voice from a text prompt or from a consent recording and an audio sample.\n\nFor prompt-based creation, send `type: \"prompt\"` with a `name` and `prompt` as JSON or multipart form data. For creation from an audio sample, send `type: \"audio_sample\"` with a `name`, `audio_sample`, and `consent` recording ID as multipart form data. The type defaults to `audio_sample` when omitted.\n\nReturns the saved voice's metadata. Voices created from text prompts are supported only in Live, not in Realtime or the speech endpoint. The response does not include preview audio.\n","properties":{"body":{"$ref":"#/definitions/CreateVoicePromptRequest"}},"required":["body"],"additionalProperties":false,"definitions":{"CreateVoicePromptRequest":{"type":"object","title":"Prompt","description":"Creates a synthetic voice from a text description. Supports application/json or multipart/form-data.","additionalProperties":false,"properties":{"type":{"type":"string","enum":["prompt"],"description":"Set to `prompt` to create a voice from a text description."},"name":{"type":"string","minLength":1,"maxLength":256,"description":"The name of the new voice."},"prompt":{"type":"string","minLength":1,"maxLength":2000,"description":"A description of the desired voice. Must not contain only whitespace."},"script_hint":{"type":"string","minLength":1,"maxLength":2000,"description":"Optional text for the voice to speak during creation. If omitted, a script is generated from the prompt. Must not be blank after trimming whitespace; scripts that are too short are rejected."},"model":{"anyOf":[{"type":"string"},{"type":"string","enum":["auto","2026-10-08"]}],"default":"auto","description":"The voice creation model to use. Defaults to `auto`."}},"required":["type","name","prompt"]}}},"name":"Create voice","id":"openai.createvoice","example":{"body":{"type":"prompt","name":"example","prompt":"example"}},"maxRequests":1,"summary":false}}