Skip to main content
Glama

speech

Converts text up to 4096 characters into 24kHz mono audio files (wav, mp3, opus, flac, pcm), using voice presets, written tone instructions, or reference audio to clone a voice.

Instructions

OmniVoice 文本转语音:input ≤4096 字符 → 音频文件(24kHz 单声道)。

voice 预设:auto/female/male/female-low/male-low/female-british/male-british/ female-american/male-american;或 instructions 文字描述音色(优先于 voice)。 ref_audio(本地路径/data URL,≤30s 参考音频)+ ref_text 可克隆音色, 不能与 voice/instructions 同用。response_format: wav/mp3/opus/flac/pcm(默认 mp3)。 音频落盘返回路径;远程客户端可 return_base64=true 获取 data URL(体积较大)。 注意:权重 CC-BY-NC,音频禁止商用,需署名(见返回 license_note)。按输入字符计费。

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": {
      "input": "<input>"
    },
    "name": "speech"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNo
inputYes
speedNo
voiceNo
languageNo
ref_textNo
ref_audioNo
instructionsNo
return_base64No
response_formatNomp3

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses that audio is written to disk and a path is returned, that base64 output is large, the cost model (per input character), and a licensing constraint (CC-BY-NC weights, no commercial use, attribution via license_note). It does not cover file location/lifetime or error behavior, so 4 rather than 5.

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?

Front-loaded with the core verb and output spec, then grouped into presets, cloning, format/return, and licensing/cost. Dense and mostly waste-free; the licensing line is slightly long but carries real information.

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

Completeness4/5

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

For a 10-parameter tool with 0% schema coverage, no annotations, and no output schema, the description covers the parameters that matter most and the side effects an agent must anticipate. Undocumented seed/speed/language and the absence of any error or persistence-detail note keep it from being fully complete.

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

Parameters4/5

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

Schema coverage is 0% and no enums are declared, yet the description supplies the voice preset list (auto/female/male/…-american), the full response_format list with mp3 default, the ≤4096 char input bound, and the ≤30s/local-path-or-data-URL constraint on ref_audio. Only `seed`, `speed`, and `language` are left completely undocumented, so it is strong but not exhaustive.

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?

"OmniVoice 文本转语音:input ≤4096 字符 → 音频文件(24kHz 单声道)" names the specific transformation (text → audio file), the input bound, and the output characteristics in one line. No sibling in the catalog does speech synthesis, so there is nothing to disambiguate against, and an agent can tell instantly this is the TTS tool rather than chat/ocr.

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?

The description gives concrete selection rules: pick a `voice` preset, or supply `instructions` free text which takes priority over `voice`, or clone via `ref_audio` + `ref_text` which cannot be combined with voice/instructions. It also tells remote clients to set return_base64=true. What is missing is guidance on when this tool is preferred over non-speech siblings (e.g., chat), so it stays at 4.

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