Minimax speech

From calesthio/generative-media-skills · View interactive version

Minimax speech is an AI agent skill from the GitHub repository calesthio/generative-media-skills. Use this skill when producing speech, narration, dubbing, localization, advertising voice, voice-clone previews, or interactive voice with MiniMax speech/audio APIs. It covers MiniMax T2A HTTP, WebSocket streaming, async long-form TTS, Speech 2.8/2.6/02 model selection, system and custom voices, rap

How to use this skill

Skill file

MiniMax speech production

Use MiniMax when the production goal is generated speech: narration, localized VO, ad reads, audiobook-style segments, synthetic dialogue, product walkthroughs, voice-agent responses, or approved voice cloning. Do not use this skill for MiniMax video, music generation, image generation, or general LLM calls except where they affect speech production.

The facts below were verified against official MiniMax API documentation, release notes, pricing, and policy pages on 2026-07-10. Treat model IDs, prices, rate limits, retention windows, voice lists, and policy language as volatile; re-check before a paid or regulated production run.

Capability boundary

Documented MiniMax speech capabilities:

Not documented as standalone production APIs in the official docs index as of 2026-07-10:

If a user asks for transcription, voice conversion, or full dubbing, combine MiniMax TTS with another documented ASR/alignment/dubbing provider, or explain that MiniMax’s official speech surface does not currently expose that workflow directly.

Model selection

Use the newest supported model unless a constraint points elsewhere.

Documented model facts as of 2026-07-10:

Production heuristic:

Endpoint choice

Use HTTP when the full audio can be generated before playback and the text is under the sync limit. Use WebSocket when the user hears speech as it is generated, or when the script is over 3,000 characters but still within the synchronous 10,000-character ceiling. Use async for long-form narration, audiobook chapters, many-file jobs, or anything approaching the 50,000-character async text limit.

Documented limits and lifecycle:

Production heuristic:

Core T2A controls

Use a minimal request first, then add controls only for the production problem you need to solve.

Common controls:

Production heuristic:

Writing scripts for MiniMax voices

Write for a performer, not for a page.

Sound tags on 2.8:

Voice casting and voice IDs

Always treat the voice as a production decision.

  1. Query available voices with Voice Management instead of hardcoding from memory.
  2. Generate short auditions from the same 60–120 words of the actual script.
  3. Compare on intelligibility, brand fit, fatigue, emotional range, pronunciation, and editability.
  4. Lock the voice ID, model, speed, pitch, and language settings in the production notes.
  5. Render a full script only after a human or QA pass approves the audition.

Documented voice management:

Production heuristic:

Rapid voice cloning

Use cloning only with explicit permission, rights clearance, and a documented purpose. Voice is a biometric identifier and a performance asset.

Documented workflow:

  1. Upload the source audio to POST /v1/files/upload with purpose=voice_clone.
  2. The cloning source must be mp3, m4a, or wav, at least 10 seconds and no more than 5 minutes, and no larger than 20 MB.
  3. Call POST /v1/voice_clone with the returned file_id, a custom voice_id, and optional preview text.
  4. Custom voice_id must be 8–256 characters, start with an English letter, contain only letters, digits, -, and _, not end in - or _, and not duplicate an existing ID.
  5. If a cloned voice is not used within 7 days, MiniMax documents that the system deletes it.
  6. Use text_validation to compare the sample transcript with ASR output; if similarity is below accuracy, the request is rejected with error 1043.
  7. Optional need_noise_reduction and need_volume_normalization can clean a clone source, but use better source audio first.
  8. Optional aigc_watermark appends an AI-generated-content watermark tone to preview audio.

Prompt audio for stability:

Consent gate:

Voice design

Use voice design when the user needs a custom voice persona but does not have a legally cleared speaker sample.

Documented workflow:

Production heuristic:

Artifact custody

Treat generated audio and voice IDs as production assets.

Pricing, quota, and throughput

Documented pay-as-you-go prices on 2026-07-10:

Documented rate limits on 2026-07-10:

Production heuristic:

Production QA

Review with headphones and a transcript, then in the final video mix.

Minimum QA checklist:

Recommended measurable checks:

Example: polished product narration

Production intent: a 30-second SaaS launch voiceover for a web video.

Approach: cast system voices, approve one, render final with speech-2.8-hd, keep mono MP3/WAV stem for editing.

Example request:

{
  "model": "speech-2.8-hd",
  "text": "Your support queue should not feel like a guessing game.<#0.35#>\nMeet Northstar Assist: it reads every ticket, finds the real blocker, and drafts the next best reply before your team opens the thread.<#0.5#>\nLess triage. Faster answers. Happier customers.",
  "stream": false,
  "language_boost": "English",
  "voice_setting": {
    "voice_id": "English_Insightful_Speaker",
    "speed": 0.96,
    "vol": 1,
    "pitch": 0,
    "emotion": "calm"
  },
  "pronunciation_dict": {
    "tone": ["Northstar/North star"]
  },
  "audio_setting": {
    "sample_rate": 44100,
    "bitrate": 256000,
    "format": "mp3",
    "channel": 1
  },
  "subtitle_enable": true,
  "subtitle_type": "word",
  "output_format": "hex"
}

Expected result: a controlled, premium read with clean word-level subtitle data.

Failure modes:

Variation: use speech-2.8-turbo for auditions, then regenerate the approved take in HD.

Example: approved cloned-voice localization

Production intent: localize an internal training video using an employee’s approved voice.

Approach: collect written consent, upload a clean source sample, clone, activate the voice with a short synthesis, then generate localized scene stems.

Workflow:

  1. Confirm consent covers synthetic voice, internal training, target languages, retention period, and deletion policy.
  2. Prepare a 60–90 second WAV with one speaker, low noise, no music, and natural pacing.
  3. Upload it with purpose=voice_clone.
  4. Call voice_clone with a project-scoped voice_id, text_validation, accuracy, and normalization only if needed.
  5. Generate a 10-second audition in the target language with language_boost set explicitly.
  6. Ask the speaker or project owner to approve the audition before generating all scenes.

Example clone request body:

{
  "file_id": 123456789012345680,
  "voice_id": "AcmeTraining_JRivera_2026Q3",
  "text": "Welcome to the safety briefing. Today we will cover the three checks every operator must complete before starting a shift.",
  "model": "speech-2.8-hd",
  "language_boost": "English",
  "text_validation": "Welcome to the safety briefing. Today we will cover the three checks every operator must complete before starting a shift.",
  "accuracy": 0.75,
  "need_noise_reduction": false,
  "need_volume_normalization": true,
  "aigc_watermark": true
}

Expected result: a cloned voice ID and a preview URL if preview text/model are supplied.

Failure modes:

Variation: use clone_prompt with a sub-8-second prompt audio and transcript when the clone needs more stable similarity.

Example: low-latency agent response

Production intent: a voice assistant that speaks an answer while generating.

Approach: use WebSocket T2A with speech-2.8-turbo, short chunks, and a playback buffer.

Workflow:

  1. Open wss://api.minimax.io/ws/v1/t2a_v2 with Bearer auth.
  2. Send task_start with model, voice, language, and MP3 audio settings.
  3. Wait for task_started.
  4. Send one concise task_continue message per response segment.
  5. Play received hex audio chunks in order and append them to the saved take.
  6. Send task_finish when the response is complete.

Example task_start:

{
  "event": "task_start",
  "model": "speech-2.8-turbo",
  "language_boost": "English",
  "voice_setting": {
    "voice_id": "English_radiant_girl",
    "speed": 1.08,
    "vol": 1,
    "pitch": 0,
    "english_normalization": true
  },
  "audio_setting": {
    "sample_rate": 32000,
    "bitrate": 128000,
    "format": "mp3",
    "channel": 1
  }
}

Example task_continue:

{
  "event": "task_continue",
  "text": "I found three matching invoices. The newest one is from June tenth for four hundred eighty dollars."
}

Expected result: audio chunks arrive during synthesis, then an is_final event marks completion for the segment.

Failure modes:

Variation: for a non-interactive IVR prompt library, render the same copy over HTTP or async and QA the files offline.

Sources to verify before production

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.