agentleFS
sugarforeversugarforever/boring-video-studio/skills/boring-video/minimax-tts/SKILL.md

minimax-tts

Skill201 starsChanged 5 days agoMITView on GitHub

Use for MiniMax narration, voice selection, or subtitle recovery.

  • Reads credentials

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use scripts/minimax_tts.py relative to this skill's installed directory (Python 3.10+, standard library).

    line 8
  2. Distinctive:

    Use absolute input/output paths and a new or empty output directory:

    line 28
  3. Distinctive:

    If the script exceeds the CLI's length limit, follow long narration before synthesis.

    line 36
  4. Very specific:

    Use the existing audio's response.json and its data.subtitle_file URL:

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

MiniMax TTS

Use scripts/minimax_tts.py relative to this skill's installed directory (Python 3.10+, standard library). Read its --help for command options. Follow only the requested branch below; voice selection and subtitle recovery can finish independently of synthesis or HyperFrames.

For voice queries and synthesis, use MINIMAX_API_KEY from the environment. Select the account's platform through MINIMAX_API_BASE (origin without /v1): international https://api.minimax.io (default), domestic https://api.minimaxi.com, or US West https://api-uw.minimax.io. Use credentials and voice IDs from that platform.

Select a voice

  1. Query account voices:

    python3 scripts/minimax_tts.py voices --type all
  2. Validate an explicit user choice or project default against the results. Otherwise, shortlist 3–5 voices suited to the narration language and purpose (or all matches if fewer); show each name, description and voice_id. Base descriptions on returned metadata, and mark missing details as unknown.
  3. When no valid choice or default exists, wait for the user to select a candidate. If none match, report the gap and ask whether to broaden the search. If they request auditions, synthesize the same short excerpt for each requested candidate in separate directories and present the audio before selection.

Voice selection is complete when a valid voice_id is confirmed by the user or an explicit project default. Record it with the platform. Continue to full synthesis only when requested; a shortlist or audition alone does not select a voice.

Generate narration

  1. In HyperFrames, use the narration version at its voice gate; for a standalone request, use the supplied script. Extract spoken text into a UTF-8 file, keeping planning IDs and production notes in their source artifacts. Resolve the platform, model and voice before synthesis, using the selection branch when needed.
  2. Use absolute input/output paths and a new or empty output directory:

    python3 scripts/minimax_tts.py synthesize \
      /absolute/path/narration.txt /absolute/path/narration/revision-01 \
      --voice-id '<confirmed voice_id>'

    If the script exceeds the CLI's length limit, follow long narration before synthesis.

  3. Review pronunciation, pauses and SRT text/timing against the audio and script. Keep synthesis annotations out of display captions; preserve timestamps when correcting text unless listening establishes a timing error.
  4. Deliver narration-full.mp3 and reviewed narration.srt, retaining response.json and subtitles.json as evidence. For HyperFrames, pass the current narration revision and settings through /media-use; changed narration returns to the next voice gate with fresh outputs.

Standalone synthesis is complete when playable audio and reviewed SRT are delivered. HyperFrames synthesis additionally requires acceptance into the current production workflow.

Recover subtitles

Use the existing audio's response.json and its data.subtitle_file URL:

python3 scripts/minimax_tts.py subtitles \
  --url '<data.subtitle_file>' \
  --out-dir /absolute/path/narration/revision-01

This retries subtitle retrieval without another synthesis charge. If conversion fails, inspect retained subtitles.json against the API subtitle schema; preserve the existing audio and resolve the subtitle error. If synthesis timed out, establish its outcome before deciding whether another paid request is needed.

Recovery is complete when the restored SRT has been checked against the existing audio and delivered for that same revision. Resume the production workflow only when that was part of the request.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.