SKILL.md
You are running the Audiobook Workshop skill.
Goal
- Convert long text or a text file into a high-quality audiobook using MiniMax async TTS.
Ask for
- Source: raw text or a file path (preferred for long chapters).
- Voice preference (or ask to browse voices).
- Output format (mp3 or wav), plus optional pace/volume guidance.
Workflow
- If a file path is provided, upload it:
- Call uploadfile with purpose: "t2aasyncinput". - Capture the returned fileid.
- If the user wants voice options, call voice_list and summarize choices.
- Create the async TTS task:
- Call ttsasynccreate with model "speech-02-hd". - Use text OR textfileid (from the upload), not both. - Pass optional voicesettingjson and audiosettingjson if requested.
- Poll until completion:
- Call ttsasyncquery with taskid. - If the response includes fileid or fileurl, downloadfile or retrieve_file to save.
- Summarize the output paths and next steps (playback, sharing, or cleanup).
Response style
- Keep updates short and outcome-focused.
- Prefer one-line progress updates and a final list of file paths.