Skip to main content
Glama

Синтез речи (озвучка)

generate_speech

Convert text into speech audio and save the result as an MP3 or PCM file to disk using Infergate TTS models.

Instructions

Озвучивает текст через Infergate (POST /audio/speech, формат OpenAI audio.speech) и сохраняет аудиофайл (mp3 или pcm) на диск. Платный вызов. Модели TTS ищите через list_models (query='tts' или output_modality='audio').

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

Input Schema

NameRequiredDescriptionDefault
extraNoДополнительные поля запроса, передаются как есть
inputYesТекст для озвучки
modelYesid TTS-модели, например fish-audio/s1
speedNoСкорость речи, например 1.0
voiceNoГолос (зависит от модели). ElevenLabs — имя строчными: sarah, george; Fish Audio и OpenAI — alloy. По умолчанию подбирается сам
output_dirNo
filename_prefixNo
response_formatNomp3 (по умолчанию) или pcm

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations supplied, the description carries the whole burden, and it does disclose that this is a paid, side-effecting operation that writes an mp3/pcm file to disk. It does not reveal where files land by default (output_dir/filename_prefix defaults), what the response looks like (e.g. the resulting file path), or how failed/partial writes are handled — meaningful gaps for a file-producing mutation.

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?

Three short sentences, front-loaded with the action and side effect, then the cost warning, then the model-discovery pointer. Nothing is redundant and no filler is present.

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 8-parameter, no-annotation, no-output-schema tool, the description covers purpose, cost, storage format, and model discovery but omits the output location defaults and the return value (the saved file's path), which an agent needs to chain this tool into a larger workflow.

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 coverage is 75%, so most parameters already explain themselves (input, model, voice, speed, response_format). The description's added value is mainly the model-lookup route and confirmation of the OpenAI audio.speech request shape; it says nothing about output_dir, filename_prefix, or the free-form extra object, which remain undocumented in both description and 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 concrete verb+resource ("Озвучивает текст через Infergate") and adds the crucial side effect of saving an audio file to disk. That combination clearly separates it from the neighboring generators of image/music/video and from the transcription tool, without needing to open the schema.

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 gives explicit routing advice for the trickiest prerequisite: how to find a valid TTS model via list_models with concrete query hints. It also warns that the call is paid, but it stops short of saying when to prefer this over an alternative (there is no competing text-to-speech sibling to contrast with), so it is strong context rather than a full when/when-not statement.

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