Skip to main content
Glama

synthesize_audio_advanced

Synthesize multi-speaker audio/video with complete timing and review data.

    Billed operation. segments is a native array with text, start_ms,
    end_ms and optional original, speaker_id, voice_id, language_code and
    review fields returned by translation. speaker_voices maps each
    speaker_id to a preset or cloned voice_id. Pass stem_id to preserve
    background music and video_id to produce MP4. Outputs are local files
    (stdio) or expiring download URLs (hosted); no inline media blobs.
    

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": {
      "language": "<language>",
      "language_code": "<language_code>",
      "voice_id": "<voice_id>",
      "segments": "<segments>"
    },
    "name": "synthesize_audio_advanced"
  }
}

Input Schema

NameRequiredDescriptionDefault
stem_idNoBackground-music stem identifier returned by transcription; empty omits it.
languageYesTarget language for this operation, for example "French".
segmentsYesNon-empty array of translated segments with text, start_ms, end_ms and optional original, speaker_id, voice_id, language_code and review fields.
video_idNoVideo identifier returned by registration/transcription; empty omits video assembly.
voice_idYesVoice identifier returned by list_voices or voice creation; reuse the exact identifier.
output_pathNoOutput filename/path in stdio, or filename for the temporary hosted download. Use the matching file extension.dubbed.wav
language_codeYesLanguage code, for example "en" or "fr". Leave empty to use the operation default.
speaker_voicesNoOptional mapping from transcript speaker_id to a preset or saved voice_id.
speech_islandsNoOptional speech timing ranges using integer start_ms and end_ms from detailed transcription.
keep_same_lengthNoWhether synthesis should try to retain the original timing.
source_transcriptNoOriginal transcript text for synthesis context; empty omits it.
video_output_pathNoOptional output MP4 filename/path; empty derives it from the audio output filename.
source_duration_msNoActual processed source duration in milliseconds, from transcription. Zero leaves it unspecified.
document_translationNoWhether synthesis is for document-translation narration.
enterprise_long_formNoRequest enterprise long-form processing only when allowed by get_audio_capabilities.
keep_background_musicNoWhether to retain the original background music for the dubbing workflow.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • addedInput schema / properties / document_translation / description
      Added value: +"Whether synthesis is for document-translation narration."
    • addedInput schema / properties / enterprise_long_form / description
      Added value: +"Request enterprise long-form processing only when allowed by get_audio_capabilities."
    • addedInput schema / properties / keep_background_music / description
      Added value: +"Whether to retain the original background music for the dubbing workflow."
    • addedInput schema / properties / keep_same_length / description
      Added value: +"Whether synthesis should try to retain the original timing."
    • addedInput schema / properties / language / description
      Added value: +"Target language for this operation, for example \"French\"."
    • addedInput schema / properties / language_code / description
      Added value: +"Language code, for example \"en\" or \"fr\". Leave empty to use the operation default."
    • addedInput schema / properties / output_path / description
      Added value: +"Output filename/path in stdio, or filename for the temporary hosted download. Use the matching file extension."
    • addedInput schema / properties / segments / description
      Added value: +"Non-empty array of translated segments with text, start_ms, end_ms and optional original, speaker_id, voice_id, language_code and review fields."
    • addedInput schema / properties / source_duration_ms / description
      Added value: +"Actual processed source duration in milliseconds, from transcription. Zero leaves it unspecified."
    • addedInput schema / properties / source_transcript / description
      Added value: +"Original transcript text for synthesis context; empty omits it."
    • addedInput schema / properties / speaker_voices / description
      Added value: +"Optional mapping from transcript speaker_id to a preset or saved voice_id."
    • addedInput schema / properties / speech_islands / description
      Added value: +"Optional speech timing ranges using integer start_ms and end_ms from detailed transcription."
    • addedInput schema / properties / stem_id / description
      Added value: +"Background-music stem identifier returned by transcription; empty omits it."
    • addedInput schema / properties / video_id / description
      Added value: +"Video identifier returned by registration/transcription; empty omits video assembly."
    • addedInput schema / properties / video_output_path / description
      Added value: +"Optional output MP4 filename/path; empty derives it from the audio output filename."
    • addedInput schema / properties / voice_id / description
      Added value: +"Voice identifier returned by list_voices or voice creation; reuse the exact identifier."
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and delivers real behavioral facts: this is a billed operation, outputs are local files under stdio or expiring download URLs when hosted, and no inline media blobs are returned. It still omits overwrite behavior, permission/capability prerequisites, and failure modes, so it is not exhaustive.

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?

Purpose is front-loaded in the first sentence, followed by cost, key parameter semantics, and output format in a logical order. There is mild redundancy where the segments field list is repeated from the schema, but no sentence is filler.

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 a 16-parameter, annotation-free mutation tool, the description covers the core workflow and the output modality well and an output schema exists to carry return details. It leaves the many optional switches (keep_same_length, source_transcript, document_translation, enterprise_long_form) and their interactions almost entirely to the schema, and gives no prerequisites or failure guidance.

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 all 16 parameters. The description adds only marginal meaning, clarifying that segments come back from translation and that speaker_voices maps speaker_id to preset or cloned voice_ids — largely a restatement of the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives a specific verb and resource ('Synthesize multi-speaker audio/video') plus scope ('complete timing and review data'), which clearly signals a richer variant of basic synthesis. It never names synthesize_audio as the lighter alternative, so differentiation is implied rather than stated.

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?

It provides some situational cues — pass stem_id for background music, video_id for MP4, and warns the call is billed — but never says when to choose this over synthesize_audio or parse_audio_script. Usage is implied through parameter effects rather than explicit routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.