Skip to main content
Glama

text_to_speech

Idempotent

mlpeek: Speak text aloud in 41 voices: English, Spanish, French, Hindi, Italian, Portuguese. For audio to text use transcribe_audio. Returns the text spoken as audio. Offline neural TTS (Kokoro-82M); the audio is a synthetic voice. At most 2,000 characters; 41 voices in 6 languages (the voice sets the language: write the text in it). Bad input is a 422, a busy or unavailable model a 503, a synthesis over the time limit a 504 (none charged). Save data_base64 to a file to play it, or send output "url" for a 24 h link. Typically 4-10 s for 200 characters (about 13 s of speech), up to about a minute for 2,000 characters. Price: USD 0.005. Free: 5 mlpeek calls per IP per UTC day. The submitted text is not logged; the result is kept only with output "url" (24 h). Docs: https://tanod.dev/learn/text-to-speech-api.html

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": {
      "text": "<text>"
    },
    "name": "text_to_speech"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to speak, 1 to 2,000 characters, in the language of the chosen voice (English, Spanish, French, Hindi, Italian or Brazilian Portuguese).
speedNoSpeaking rate, 0.5 to 2.0 (1.0 is normal).
voiceNoVoice (41): the first letter is the language: a US English (af_heart default, af_bella, am_adam), b UK English (bf_emma, bm_george), e Spanish (ef_dora), f French (ff_siwis), h Hindi (hf_alpha, hm_omega), i Italian (if_sara, im_nicola), p Brazilian Portuguese (pf_dora, pm_alex); f = female, m = male. Write the text in the voice's language.af_heart
formatNoAudio format: mp3, wav (16-bit PCM) or ogg (Opus).mp3
outputNobase64 (default): inline. url: stored for 24 hours; link, metadata.base64

Output Schema

NameRequiredDescriptionDefault
urlNo
bytesNo
charsNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
speedNo
voiceNo
engineNo
formatNo
sha256No
duration_sNo
expires_atNo
data_base64No
sample_rateNo
content_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / properties / output / title
      Removed value: -"Output"
    • removedInput schema / properties / speed / title
      Removed value: -"Speed"
    • removedInput schema / properties / text / title
      Removed value: -"Text"
    • removedInput schema / properties / voice / title
      Removed value: -"Voice"
    • removedInput schema / title
      Removed value: -"text_to_speechArguments"
    • removedOutput schema / properties / bytes / description
      Removed value: -"Bytes."
    • removedOutput schema / properties / content_type / description
      Removed value: -"MIME type."
    • removedOutput schema / properties / expires_at / description
      Removed value: -"UTC expiry."
    • removedOutput schema / properties / sha256 / description
      Removed value: -"SHA-256."
    • removedOutput schema / properties / url / description
      Removed value: -"Public link."
  2. Changed6 schema fields changed
    • changedInput schema / properties / output / description
      Previous value: -"base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."New value: +"base64 (default): inline. url: stored for 24 hours; link, metadata."
    • addedOutput schema / properties / bytes / description
      Added value: +"Bytes."
    • addedOutput schema / properties / content_type / description
      Added value: +"MIME type."
    • addedOutput schema / properties / expires_at / description
      Added value: +"UTC expiry."
    • addedOutput schema / properties / sha256 / description
      Added value: +"SHA-256."
    • addedOutput schema / properties / url / description
      Added value: +"Public link."
  3. Changed4 schema fields changed
    • addedInput schema / properties / output
      Added value: +{
      +  "default": "base64",
      +  "description": "base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window.",
      +  "enum": [
      +    "base64",
      +    "url"
      +  ],
      +  "title": "Output",
      +  "type": "string"
      +}
    • addedOutput schema / properties / expires_at
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / sha256
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / url
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  4. Changed3 schema fields changed
    • changedInput schema / properties / text / description
      Previous value: -"English text to speak, 1 to 2,000 characters."New value: +"Text to speak, 1 to 2,000 characters, in the language of the chosen voice (English, Spanish, French, Hindi, Italian or Brazilian Portuguese)."
    • changedInput schema / properties / voice / description
      Previous value: -"Voice: af_heart, af_bella, af_nicole, af_sarah (US female), am_adam, am_michael (US male), bf_emma (UK female), bm_george (UK male)."New value: +"Voice (41): the first letter is the language: a US English (af_heart default, af_bella, am_adam), b UK English (bf_emma, bm_george), e Spanish (ef_dora), f French (ff_siwis), h Hindi (hf_alpha, hm_omega), i Italian (if_sara, im_nicola), p Brazilian Portuguese (pf_dora, pm_alex); f = female, m = male. Write the text in the voice's language."
    • changedInput schema / properties / voice / enum
      Previous value: -[
      -  "af_heart",
      -  "af_bella",
      -  "af_nicole",
      -  "af_sarah",
      -  "am_adam",
      -  "am_michael",
      -  "bf_emma",
      -  "bm_george"
      -]New value: +[
      +  "af_heart",
      +  "af_alloy",
      +  "af_aoede",
      +  "af_bella",
      +  "af_jessica",
      +  "af_kore",
      +  "af_nicole",
      +  "af_nova",
      +  "af_river",
      +  "af_sarah",
      +  "af_sky",
      +  "am_adam",
      +  "am_echo",
      +  "am_eric",
      +  "am_fenrir",
      +  "am_liam",
      +  "am_michael",
      +  "am_onyx",
      +  "am_puck",
      +  "am_santa",
      +  "bf_alice",
      +  "bf_emma",
      +  "bf_isabella",
      +  "bf_lily",
      +  "bm_daniel",
      +  "bm_fable",
      +  "bm_george",
      +  "bm_lewis",
      +  "ef_dora",
      +  "em_alex",
      +  "em_santa",
      +  "ff_siwis",
      +  "hf_alpha",
      +  "hf_beta",
      +  "hm_omega",
      +  "hm_psi",
      +  "if_sara",
      +  "im_nicola",
      +  "pf_dora",
      +  "pm_alex",
      +  "pm_santa"
      +]
  5. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources