tts-voiceover

Generate Chinese voiceover audio with MiniMax T2A v2 API for video narration.

Updated Aug 9, 2026
Ready to run
npx skills add https://github.com/ChenJiangxi/auramate-video --skill tts-voiceover-chenjiangxi
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: tts-voiceover
Source: https://github.com/ChenJiangxi/auramate-video/tree/main/skills/tts-voiceover
Command: npx skills add https://github.com/ChenJiangxi/auramate-video --skill tts-voiceover-chenjiangxi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Producing voiceover narration for short videos requires picking the right voice, handling MiniMax API regional accounts, avoiding pronunciation pitfalls, and verifying output files—mistakes here silently break audio-video sync downstream. This Skill encodes tested parameters, voice selection tables, and error-code fixes so an agent can generate usable narration on the first pass. ## Core Features & Use Cases - Voice selection by genre: Maps content types (documentary, emotional, marketing, first-person) to tested voice_ids with measured speech rates, so clip durations can be computed before generation. - API and region handling: Covers the two separate MiniMax regions (api.minimax.io vs api.minimaxi.com), hex-decoded audio output, and a quick-reference table for error codes like 1008, 2042, and 2049. - Post-generation verification: Runs checks for empty files, ffprobe parseability, duration sanity, and characters-per-second ranges to catch silent TTS failures before concatenation. - Use Case: Given a clips.json of narration lines, generate three voice samples for human review, then batch-generate the full voiceover with presenter_male at 1.28x speed and verify every file. ## Quick Start Generate voiceover audio for my video script clips using MiniMax TTS with the presenter_male voice, then verify all output files are valid.

Frequently Asked Questions about tts-voiceover

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Chinese voiceover audio with the MiniMax TTS API?▼

POST to the /t2a_v2 endpoint with model speech-2.5-hd-preview, your text, a voice_id, and audio settings like 32000 Hz MP3. The response data.audio field is a hex string that must be decoded with Buffer.from(hex, 'hex') before writing to file.

Which MiniMax voice should I use for different video genres?▼

Use presenter_male at 1.28-1.32x speed for knowledge or documentary content, female-tianmei for emotional or relationship topics, and female-shaonv for light marketing content. Note that female-tianmei runs about 15% slower than presenter_male for the same text length.

Why does MiniMax TTS return a 2049 invalid api key error?▼

Error 2049 means the API key does not match the region endpoint. International keys work with api.minimax.io while mainland China keys work with api.minimaxi.com, and the two regions have fully separate accounts and balances.

Why does MiniMax TTS fail with a 1008 insufficient balance error?▼

Error 1008 means the pay-as-you-go balance is empty. TTS charges draw from pay-as-you-go funds, not the credits pool, which is often labeled for language models only, so topping up credits will not fix TTS failures.

How do I verify TTS audio files are valid before video assembly?▼

Run a verification script that checks each file exists and is non-empty, parses with ffprobe, has a plausible duration, is not silent, and falls within 2.5-8 characters per second. Empty or truncated TTS output silently breaks audio-video sync during concatenation.

Can MiniMax TTS output word-level timestamps for subtitles?▼

No. The returned SRT contains only one segment per clip, not per-word timestamps, so it cannot drive per-line subtitles. Subtitle timing must be computed separately from the audio durations.