Skip to main content
Glama

Speak text in a preset voice

createSpeechPreset

Convert text to speech using a named built-in preset voice, with optional language and either an emotion or a delivery note, depending on the voice. Both text and voice_preset_id are required and the text is limited to 250 characters. The voices named by a first name (e.g. "Rachel") take a delivery note (at most 50 characters, e.g. "angry, shouting") and no emotion; the descriptive voices (e.g. "Serious woman") take an emotion and no delivery note. Invalid input, including an emotion or delivery note the voice does not take, returns HTTP 400. The job result is a single audio result containing the URL of an MP3 or WAV file (the URL's extension, .mp3 or .wav, says which). Credits are held when the job is accepted and refunded if it fails or is cancelled. Use this when you want a ready-made catalog voice and do not need to supply your own sample; use createSpeech to clone a voice from an audio sample instead, and createVoice to design a new voice from a text description. Pass an optional request_id to tag the result so you can locate it later via listGenerations (type audio). Async generation job: returns {id, status} - poll getApiJob (job and credit contract: see the server instructions).

Credits: This endpoint consumes 1 credits per call.

Input Schema

NameRequiredDescriptionDefault
requestBodyYesPayload for text-to-speech generation using a voice preset

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / requestBody / properties / delivery
      Added value: +{
      +  "description": "How the line is said, e.g. \"angry, shouting\" or \"whispering, out of breath\" (max 50 characters). Only for the first-name voices (e.g. \"Rachel\"); a descriptive voice returns HTTP 400 - use emotion instead.",
      +  "maxLength": 50,
      +  "type": "string"
      +}
    • changedInput schema / properties / requestBody / properties / emotion / description
      Previous value: -"Emotion to apply to the speech."New value: +"Emotion to apply to the speech. Only for the descriptive voices (e.g. \"Serious woman\"); a first-name voice returns HTTP 400 for any emotion other than Default - use delivery instead."
    • changedInput schema / properties / requestBody / properties / language / description
      Previous value: -"Language code for the speech."New value: +"Language of the speech. Each voice family supports its own list of languages; \"auto\" detects it from the text."
    • changedInput schema / properties / requestBody / properties / language / enum
      Previous value: -[
      -  "auto",
      -  "English",
      -  "Afrikaans",
      -  "Arabic",
      -  "Bulgarian",
      -  "Catalan",
      -  "Chinese",
      -  "Chinese,Yue",
      -  "Croatian",
      -  "Czech",
      -  "Danish",
      -  "Filipino",
      -  "Finnish",
      -  "French",
      -  "German",
      -  "Greek",
      -  "Hebrew",
      -  "Hindi",
      -  "Hungarian",
      -  "Indonesian",
      -  "Italian",
      -  "Japanese",
      -  "Korean",
      -  "Malay",
      -  "Norwegian",
      -  "Nynorsk",
      -  "Persian",
      -  "Polish",
      -  "Portuguese",
      -  "Romanian",
      -  "Russian",
      -  "Slovak",
      -  "Slovenian",
      -  "Spanish",
      -  "Swedish",
      -  "Tamil",
      -  "Thai",
      -  "Turkish",
      -  "Ukrainian",
      -  "Vietnamese"
      -]New value: +[
      +  "auto",
      +  "English",
      +  "Afrikaans",
      +  "Arabic",
      +  "Bulgarian",
      +  "Catalan",
      +  "Chinese",
      +  "Chinese,Yue",
      +  "Croatian",
      +  "Czech",
      +  "Danish",
      +  "Filipino",
      +  "Finnish",
      +  "French",
      +  "German",
      +  "Greek",
      +  "Hebrew",
      +  "Hindi",
      +  "Hungarian",
      +  "Indonesian",
      +  "Italian",
      +  "Japanese",
      +  "Korean",
      +  "Malay",
      +  "Norwegian",
      +  "Nynorsk",
      +  "Persian",
      +  "Polish",
      +  "Portuguese",
      +  "Romanian",
      +  "Russian",
      +  "Slovak",
      +  "Slovenian",
      +  "Spanish",
      +  "Swedish",
      +  "Tamil",
      +  "Thai",
      +  "Turkish",
      +  "Ukrainian",
      +  "Vietnamese",
      +  "Armenian",
      +  "Assamese",
      +  "Asturian",
      +  "Azerbaijani",
      +  "Belarusian",
      +  "Bengali",
      +  "Bosnian",
      +  "Burmese",
      +  "Cebuano",
      +  "Dutch",
      +  "Estonian",
      +  "Galician",
      +  "Georgian",
      +  "Gujarati",
      +  "Hausa",
      +  "Icelandic",
      +  "Irish",
      +  "Javanese",
      +  "Kannada",
      +  "Kazakh",
      +  "Kyrgyz",
      +  "Latvian",
      +  "Lingala",
      +  "Lithuanian",
      +  "Luxembourgish",
      +  "Macedonian",
      +  "Malayalam",
      +  "Maltese",
      +  "Maori",
      +  "Marathi",
      +  "Mongolian",
      +  "Nepali",
      +  "Occitan",
      +  "Odia",
      +  "Pashto",
      +  "Punjabi",
      +  "Serbian",
      +  "Sindhi",
      +  "Somali",
      +  "Swahili",
      +  "Tajik",
      +  "Telugu",
      +  "Urdu",
      +  "Uzbek",
      +  "Welsh",
      +  "Yoruba"
      +]
    • changedInput schema / properties / requestBody / properties / text / description
      Previous value: -"Text to convert to speech (max 1000 characters)."New value: +"Text to convert to speech (max 250 characters)."
    • changedInput schema / properties / requestBody / properties / text / maxLength
      Previous value: -1000New value: +250
    • changedInput schema / properties / requestBody / properties / voice_preset_id / description
      Previous value: -"Voice preset identifier."New value: +"Voice preset identifier. Two families of voices: the ones named by a first name (e.g. \"Rachel\", \"Roger\") take a delivery note and no emotion; the descriptive ones (e.g. \"Serious woman\", \"Deep voice man\") take an emotion and no delivery note."
    • changedInput schema / properties / requestBody / properties / voice_preset_id / enum
      Previous value: -[
      -  "Serious woman",
      -  "Wise woman",
      -  "Calm woman",
      -  "Fast-paced woman",
      -  "Calm young girl",
      -  "Expressive teen girl",
      -  "Calm teen girl",
      -  "Sweet girl",
      -  "Patient man",
      -  "Determined man",
      -  "Young elegant man",
      -  "Teen boy",
      -  "Friendly man",
      -  "Deep voice man"
      -]New value: +[
      +  "Serious woman",
      +  "Wise woman",
      +  "Calm woman",
      +  "Fast-paced woman",
      +  "Calm young girl",
      +  "Expressive teen girl",
      +  "Calm teen girl",
      +  "Sweet girl",
      +  "Patient man",
      +  "Determined man",
      +  "Young elegant man",
      +  "Teen boy",
      +  "Friendly man",
      +  "Deep voice man",
      +  "Rachel",
      +  "Aria",
      +  "Roger",
      +  "Sarah",
      +  "Laura",
      +  "Charlie",
      +  "George",
      +  "Callum",
      +  "River",
      +  "Liam",
      +  "Charlotte",
      +  "Alice",
      +  "Matilda",
      +  "Will",
      +  "Jessica",
      +  "Eric",
      +  "Chris",
      +  "Brian",
      +  "Daniel",
      +  "Lily",
      +  "Bill"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / requestBody / properties / language / enum
      Previous value: -[
      -  "auto",
      -  "English",
      -  "Afrikaans",
      -  "Arabic",
      -  "Bulgarian",
      -  "Catalan",
      -  "Chinese",
      -  "Chinese,Yue",
      -  "Croatian",
      -  "Czech",
      -  "Danish",
      -  "English",
      -  "Filipino",
      -  "Finnish",
      -  "French",
      -  "German",
      -  "Greek",
      -  "Hebrew",
      -  "Hindi",
      -  "Hungarian",
      -  "Indonesian",
      -  "Italian",
      -  "Japanese",
      -  "Korean",
      -  "Malay",
      -  "Norwegian",
      -  "Nynorsk",
      -  "Persian",
      -  "Polish",
      -  "Portuguese",
      -  "Romanian",
      -  "Russian",
      -  "Slovak",
      -  "Slovenian",
      -  "Spanish",
      -  "Swedish",
      -  "Tamil",
      -  "Thai",
      -  "Turkish",
      -  "Ukrainian",
      -  "Vietnamese"
      -]New value: +[
      +  "auto",
      +  "English",
      +  "Afrikaans",
      +  "Arabic",
      +  "Bulgarian",
      +  "Catalan",
      +  "Chinese",
      +  "Chinese,Yue",
      +  "Croatian",
      +  "Czech",
      +  "Danish",
      +  "Filipino",
      +  "Finnish",
      +  "French",
      +  "German",
      +  "Greek",
      +  "Hebrew",
      +  "Hindi",
      +  "Hungarian",
      +  "Indonesian",
      +  "Italian",
      +  "Japanese",
      +  "Korean",
      +  "Malay",
      +  "Norwegian",
      +  "Nynorsk",
      +  "Persian",
      +  "Polish",
      +  "Portuguese",
      +  "Romanian",
      +  "Russian",
      +  "Slovak",
      +  "Slovenian",
      +  "Spanish",
      +  "Swedish",
      +  "Tamil",
      +  "Thai",
      +  "Turkish",
      +  "Ukrainian",
      +  "Vietnamese"
      +]
  3. Changed2 schema fields changed
    • changedInput schema / properties / requestBody / properties / request_id / description
      Previous value: -"Optional client-provided identifier, unique per request. Re-sending the same request_id returns the existing job instead of generating again. Also usable with the results endpoint."New value: +"Optional client-provided identifier, unique per request. Re-sending the same request_id returns the existing job instead of generating again. Also usable as the request_id filter of listGenerations."
    • changedInput schema / properties / requestBody / properties / text / description
      Previous value: -"Text to convert to speech (max 100 words)."New value: +"Text to convert to speech (max 1000 characters)."
  4. Changed1 schema field changed
    • changedInput schema / properties / requestBody / properties / request_id / description
      Previous value: -"Optional client-provided identifier for this request. Use this to retrieve results later via the results endpoint."New value: +"Optional client-provided identifier, unique per request. Re-sending the same request_id returns the existing job instead of generating again. Also usable with the results endpoint."
  5. Changed6 schema fields changed
    • changedInput schema / properties / requestBody / properties / emotion / enum
      Previous value: -[
      -  "mock_string_7vy6m",
      -  "mock_string_g23qm"
      -]New value: +[
      +  "Default",
      +  "Happy",
      +  "Sad",
      +  "Angry",
      +  "Fearful",
      +  "Disgusted",
      +  "Surprised",
      +  "Neutral"
      +]
    • changedInput schema / properties / requestBody / properties / emotion / example
      Previous value: -"mock_string_7vy6m"New value: +"Default"
    • changedInput schema / properties / requestBody / properties / language / enum
      Previous value: -[
      -  "mock_string_dpgjq",
      -  "mock_string_pdn9u"
      -]New value: +[
      +  "auto",
      +  "English",
      +  "Afrikaans",
      +  "Arabic",
      +  "Bulgarian",
      +  "Catalan",
      +  "Chinese",
      +  "Chinese,Yue",
      +  "Croatian",
      +  "Czech",
      +  "Danish",
      +  "English",
      +  "Filipino",
      +  "Finnish",
      +  "French",
      +  "German",
      +  "Greek",
      +  "Hebrew",
      +  "Hindi",
      +  "Hungarian",
      +  "Indonesian",
      +  "Italian",
      +  "Japanese",
      +  "Korean",
      +  "Malay",
      +  "Norwegian",
      +  "Nynorsk",
      +  "Persian",
      +  "Polish",
      +  "Portuguese",
      +  "Romanian",
      +  "Russian",
      +  "Slovak",
      +  "Slovenian",
      +  "Spanish",
      +  "Swedish",
      +  "Tamil",
      +  "Thai",
      +  "Turkish",
      +  "Ukrainian",
      +  "Vietnamese"
      +]
    • changedInput schema / properties / requestBody / properties / language / example
      Previous value: -"mock_string_dpgjq"New value: +"auto"
    • changedInput schema / properties / requestBody / properties / voice_preset_id / enum
      Previous value: -[
      -  "60633e0d64db5381d250c4b5"
      -]New value: +[
      +  "Serious woman",
      +  "Wise woman",
      +  "Calm woman",
      +  "Fast-paced woman",
      +  "Calm young girl",
      +  "Expressive teen girl",
      +  "Calm teen girl",
      +  "Sweet girl",
      +  "Patient man",
      +  "Determined man",
      +  "Young elegant man",
      +  "Teen boy",
      +  "Friendly man",
      +  "Deep voice man"
      +]
    • changedInput schema / properties / requestBody / properties / voice_preset_id / example
      Previous value: -"60633e0d64db5381d250c4b5"New value: +"Serious woman"
  6. Changed6 schema fields changed
    • changedInput schema / properties / requestBody / properties / emotion / enum
      Previous value: -[
      -  "Default",
      -  "Happy",
      -  "Sad",
      -  "Angry",
      -  "Fearful",
      -  "Disgusted",
      -  "Surprised",
      -  "Neutral"
      -]New value: +[
      +  "mock_string_7vy6m",
      +  "mock_string_g23qm"
      +]
    • changedInput schema / properties / requestBody / properties / emotion / example
      Previous value: -"Default"New value: +"mock_string_7vy6m"
    • changedInput schema / properties / requestBody / properties / language / enum
      Previous value: -[
      -  "auto",
      -  "English",
      -  "Afrikaans",
      -  "Arabic",
      -  "Bulgarian",
      -  "Catalan",
      -  "Chinese",
      -  "Chinese,Yue",
      -  "Croatian",
      -  "Czech",
      -  "Danish",
      -  "English",
      -  "Filipino",
      -  "Finnish",
      -  "French",
      -  "German",
      -  "Greek",
      -  "Hebrew",
      -  "Hindi",
      -  "Hungarian",
      -  "Indonesian",
      -  "Italian",
      -  "Japanese",
      -  "Korean",
      -  "Malay",
      -  "Norwegian",
      -  "Nynorsk",
      -  "Persian",
      -  "Polish",
      -  "Portuguese",
      -  "Romanian",
      -  "Russian",
      -  "Slovak",
      -  "Slovenian",
      -  "Spanish",
      -  "Swedish",
      -  "Tamil",
      -  "Thai",
      -  "Turkish",
      -  "Ukrainian",
      -  "Vietnamese"
      -]New value: +[
      +  "mock_string_dpgjq",
      +  "mock_string_pdn9u"
      +]
    • changedInput schema / properties / requestBody / properties / language / example
      Previous value: -"auto"New value: +"mock_string_dpgjq"
    • changedInput schema / properties / requestBody / properties / voice_preset_id / enum
      Previous value: -[
      -  "Serious woman",
      -  "Wise woman",
      -  "Calm woman",
      -  "Fast-paced woman",
      -  "Calm young girl",
      -  "Expressive teen girl",
      -  "Calm teen girl",
      -  "Sweet girl",
      -  "Patient man",
      -  "Determined man",
      -  "Young elegant man",
      -  "Teen boy",
      -  "Friendly man",
      -  "Deep voice man"
      -]New value: +[
      +  "60633e0d64db5381d250c4b5"
      +]
    • changedInput schema / properties / requestBody / properties / voice_preset_id / example
      Previous value: -"Serious woman"New value: +"60633e0d64db5381d250c4b5"
  7. Changed1 schema field changed
    • addedInput schema / properties / requestBody / properties / request_id
      Added value: +{
      +  "description": "Optional client-provided identifier for this request. Use this to retrieve results later via the results endpoint.",
      +  "type": "string"
      +}
  8. Changed6 schema fields changed
    • changedInput schema / properties / requestBody / properties / emotion / enum
      Previous value: -[
      -  "mock_string_js8d3",
      -  "mock_string_vntxg",
      -  "mock_string_3l4dt"
      -]New value: +[
      +  "Default",
      +  "Happy",
      +  "Sad",
      +  "Angry",
      +  "Fearful",
      +  "Disgusted",
      +  "Surprised",
      +  "Neutral"
      +]
    • changedInput schema / properties / requestBody / properties / emotion / example
      Previous value: -"mock_string_js8d3"New value: +"Default"
    • changedInput schema / properties / requestBody / properties / language / enum
      Previous value: -[
      -  "mock_string_6vpl6",
      -  "mock_string_pwfux"
      -]New value: +[
      +  "auto",
      +  "English",
      +  "Afrikaans",
      +  "Arabic",
      +  "Bulgarian",
      +  "Catalan",
      +  "Chinese",
      +  "Chinese,Yue",
      +  "Croatian",
      +  "Czech",
      +  "Danish",
      +  "English",
      +  "Filipino",
      +  "Finnish",
      +  "French",
      +  "German",
      +  "Greek",
      +  "Hebrew",
      +  "Hindi",
      +  "Hungarian",
      +  "Indonesian",
      +  "Italian",
      +  "Japanese",
      +  "Korean",
      +  "Malay",
      +  "Norwegian",
      +  "Nynorsk",
      +  "Persian",
      +  "Polish",
      +  "Portuguese",
      +  "Romanian",
      +  "Russian",
      +  "Slovak",
      +  "Slovenian",
      +  "Spanish",
      +  "Swedish",
      +  "Tamil",
      +  "Thai",
      +  "Turkish",
      +  "Ukrainian",
      +  "Vietnamese"
      +]
    • changedInput schema / properties / requestBody / properties / language / example
      Previous value: -"mock_string_6vpl6"New value: +"auto"
    • changedInput schema / properties / requestBody / properties / voice_preset_id / enum
      Previous value: -[
      -  "60633e0d64db5381d250c4b5"
      -]New value: +[
      +  "Serious woman",
      +  "Wise woman",
      +  "Calm woman",
      +  "Fast-paced woman",
      +  "Calm young girl",
      +  "Expressive teen girl",
      +  "Calm teen girl",
      +  "Sweet girl",
      +  "Patient man",
      +  "Determined man",
      +  "Young elegant man",
      +  "Teen boy",
      +  "Friendly man",
      +  "Deep voice man"
      +]
    • changedInput schema / properties / requestBody / properties / voice_preset_id / example
      Previous value: -"60633e0d64db5381d250c4b5"New value: +"Serious woman"
  9. Changed6 schema fields changed
    • changedInput schema / properties / requestBody / properties / emotion / enum
      Previous value: -[
      -  "Default",
      -  "Happy",
      -  "Sad",
      -  "Angry",
      -  "Fearful",
      -  "Disgusted",
      -  "Surprised",
      -  "Neutral"
      -]New value: +[
      +  "mock_string_js8d3",
      +  "mock_string_vntxg",
      +  "mock_string_3l4dt"
      +]
    • changedInput schema / properties / requestBody / properties / emotion / example
      Previous value: -"Default"New value: +"mock_string_js8d3"
    • changedInput schema / properties / requestBody / properties / language / enum
      Previous value: -[
      -  "auto",
      -  "English",
      -  "Afrikaans",
      -  "Arabic",
      -  "Bulgarian",
      -  "Catalan",
      -  "Chinese",
      -  "Chinese,Yue",
      -  "Croatian",
      -  "Czech",
      -  "Danish",
      -  "English",
      -  "Filipino",
      -  "Finnish",
      -  "French",
      -  "German",
      -  "Greek",
      -  "Hebrew",
      -  "Hindi",
      -  "Hungarian",
      -  "Indonesian",
      -  "Italian",
      -  "Japanese",
      -  "Korean",
      -  "Malay",
      -  "Norwegian",
      -  "Nynorsk",
      -  "Persian",
      -  "Polish",
      -  "Portuguese",
      -  "Romanian",
      -  "Russian",
      -  "Slovak",
      -  "Slovenian",
      -  "Spanish",
      -  "Swedish",
      -  "Tamil",
      -  "Thai",
      -  "Turkish",
      -  "Ukrainian",
      -  "Vietnamese"
      -]New value: +[
      +  "mock_string_6vpl6",
      +  "mock_string_pwfux"
      +]
    • changedInput schema / properties / requestBody / properties / language / example
      Previous value: -"auto"New value: +"mock_string_6vpl6"
    • changedInput schema / properties / requestBody / properties / voice_preset_id / enum
      Previous value: -[
      -  "Serious woman",
      -  "Wise woman",
      -  "Calm woman",
      -  "Fast-paced woman",
      -  "Calm young girl",
      -  "Expressive teen girl",
      -  "Calm teen girl",
      -  "Sweet girl",
      -  "Patient man",
      -  "Determined man",
      -  "Young elegant man",
      -  "Teen boy",
      -  "Friendly man",
      -  "Deep voice man"
      -]New value: +[
      +  "60633e0d64db5381d250c4b5"
      +]
    • changedInput schema / properties / requestBody / properties / voice_preset_id / example
      Previous value: -"Serious woman"New value: +"60633e0d64db5381d250c4b5"
  10. Added

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false, idempotentHint=false), and the description adds substantial context beyond them: async job semantics, the {id, status} shape, credit hold/refund on failure or cancel, and HTTP 400 on the emotion/delivery mismatch. However, it asserts that resending the same request_id returns the existing job rather than generating again, which reads as deduplicating behavior and is in mild tension with idempotentHint=false; the description never reconciles the two, so an agent must guess whether the endpoint is safe to retry without a request_id.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence front-loads the core operation and constraints, and the sequencing (constraints, voice families, error behavior, output, sibling routing, async contract) is logical. It is long, though, and repeats the emotion/delivery character limits and the 250-character cap that the schema already carries, so a sentence or two could be trimmed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an async multi-step generation job with no output schema, the description supplies everything an agent needs to call and follow up: required fields, character limits, voice-family rules, failure mode (HTTP 400), credit accounting, the {id, status} return, and the polling tool. Nothing material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the nested requestBody already documents every field, including the emotion-vs-delivery mutual exclusivity rule and the 250/50 character limits. The description largely restates those rules rather than adding new semantics, so baseline 3 applies; the only genuinely additive note is that request_id can be reused as a listGenerations filter, which the schema also states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (text-to-speech with a named built-in preset voice) and immediately scopes it against the two sibling creators: createSpeech clones from a sample, createVoice designs from a description. An agent can pick the right tool from the description alone without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'use this when' condition (ready-made catalog voice, no sample needed) plus named alternatives with the exact condition that selects each of them. It also tells the agent the follow-up step (poll getApiJob) and how to retrieve results later via listGenerations with type audio.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.