Skip to main content
Glama

text_to_speech

Convert written text into spoken audio files. Tries Groq's free PlayAI service first, then falls back to a fully local model, saving MP3 or WAV output to the output/ directory.

Instructions

Convert text to speech, saved to output/.

Tries Groq's playai-tts first (free tier, no credit card - requires GROQ_API_KEY), falling back to a fully local, keyless model (Kokoro-82M, Apache-2.0) if Groq is unavailable or the key isn't set. The local fallback always produces a .wav file regardless of output_format (Kokoro's native output), and requires the optional local-tts extra (uv sync --extra local-tts) plus the espeak-ng system package for full quality on non-trivial or non-English text.

Args: text: Text to speak. voice: Groq PlayAI voice name (e.g. "Fritz-PlayAI") - ignored by the local fallback, which always uses Kokoro's "af_heart" voice. output_format: "mp3" or "wav". Only honored on the Groq tier.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
voiceNoFritz-PlayAI
output_formatNomp3

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: it discloses provider fallback order, that the local fallback always emits .wav regardless of output_format, that voice is ignored on the local tier, and exact prerequisite setup (local-tts extra and espeak-ng).

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

Conciseness5/5

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

The content is front-loaded with the one-line summary, followed by dense but relevant provider/fallback details and an Args section. Every sentence adds operational value with no filler.

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 a tool with no annotations and no parameter descriptions, the description covers provider selection, key requirements, output-directory behavior, and per-parameter semantics. An agent has enough information to invoke it correctly without inspecting sibling tools or external docs.

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

Parameters5/5

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

Schema coverage is 0%, but the description manually documents all three parameters: text, voice (with example and fallback behavior), and output_format (with allowed values and the caveat that it is only honored on Groq). This fully compensates for the empty schema.

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?

The description opens with a specific verb and resource: 'Convert text to speech, saved to output/.' This makes the tool's function immediately clear and distinguishes it from siblings such as speech_to_text (reverse direction) and list_voices/check_provider_health (support tools).

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

Usage Guidelines4/5

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

It clearly states the primary purpose and the conditions under which each provider path is used: Groq first when available and the key is set, local fallback otherwise. It doesn't explicitly name when-not-to-use cases, but no sibling tool competes for this task, so clearer context would be marginal.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Furkiozknn/voice-io-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server