Skip to main content
Glama

语音合成(单向流式)plan/tts/unidirectional

plan_tts_unidirectional

Convert input text into speech, save the generated audio file to a specified path, and return it for agent use.

Instructions

火山豆包语音合成大模型-单向流式(端点 /api/v3/plan/tts/unidirectional,HTTP Chunked)。输入文本一次性合成音频,落盘并返回给 Agent。默认音色 zh_male_liufei_uranus_bigtts(流飞,男声),音色 ID 从控制台>音色库获取;复刻音色需 resource_id=seed-icl-2.0 并传 model。需要环境变量 ARK_API_KEY。

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>",
      "output_path": "<output_path>"
    },
    "name": "plan_tts_unidirectional"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes待合成的文本
modelNo复刻音色时需指定,如 seed-tts-2.0-standard
formatNo音频格式,默认 mp3
speakerNo音色 ID,默认 zh_male_liufei_uranus_bigtts
output_pathYes音频保存的绝对路径(扩展名与 format 一致,如 .mp3/.wav/.ogg/.pcm)
resource_idNo模型版本资源,默认 seed-tts-2.0;声音复刻用 seed-icl-2.0
sample_rateNo采样率 Hz,默认 24000;ogg_opus 仅支持 48000
speech_rateNo语速 [-50,100],100 = 2.0 倍速
loudness_rateNo音量 [-50,100],100 = 2.0 倍音量
enable_subtitleNo启用字幕(字级时间戳),仅中英文
explicit_languageNo显式朗读语种,如 zh-cn / en / ja,不传自动检测

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It discloses the chunked HTTP transport, the fact that synthesis is one-shot rather than incremental, the side effect of writing to disk, the required ARK_API_KEY environment variable, and the cloned-voice constraints. It omits failure modes and size or rate limits but covers the key behaviors well.

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 description is front-loaded with what the tool does and the endpoint, followed by operational notes on voice selection, cloning, and the API key. It uses a few dense sentences without wasted wording, and each sentence adds distinct operational information.

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

Completeness3/5

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

For an 11-parameter tool with no output schema and no annotations, the description should clarify what is returned beyond 'returned to the agent'. It hints at disk output and agent return but does not specify the response payload or error behavior, leaving a meaningful gap in completeness.

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%, so the schema already documents every parameter, including the defaults for speaker, format, resource_id, sample_rate, speech_rate, and loudness_rate. The description repeats the default speaker and the cloned-voice requirement without adding syntax or semantics beyond what the schema provides, so the baseline score of 3 applies.

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 gives a specific verb and resource: it synthesizes text to audio via a one-shot unidirectional streaming endpoint, saves the audio to disk, and returns it to the agent. It also names the HTTP Chunked transport and the exact endpoint. An agent can distinguish this operation from the web-search, image-generation, transcription, and object-put siblings without further inspection.

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

Usage Guidelines3/5

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

The description explains that text is synthesized in one pass and written to disk, and it prescribes the default voice and the cloned-voice path that requires resource_id=seed-icl-2.0 plus model. It does not, however, state when to choose this tool over alternatives or what prerequisites apply (such as voice availability), so usage guidance is only implied.

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