/** * gen-voice handler — Minimax TTS via ab-api unified /tool/tts (provider=minimax). * * Operations: * --list-voices true → GET available voice IDs from /voice/page (live) * --list-voices true --local true → print the built-in language-tagged * fallback catalog (offline, no API call). * **CLI-only escape hatch for offline dev.** * default → synthesize text into an MP3 URL * * `local` is deliberately absent from `skills/gen-voice/skill.json`'s * `parameters`, which is what ab-agent turns into the model-facing tool schema. * A model asked to check a voice id would reach for `local: true`, get a * two-entry hardcoded list back, and conclude that a perfectly valid voice does * not exist — which is exactly what happened on the hosted web agent * ("本地回退列表中没有该音色"). The remote catalog is the only authority on * which voices exist; the local list is a developer convenience for working * without a token, and it is only reachable by typing the flag yourself. * * The previous Python script also offered `--download` to write the MP3 to * disk. That's intentionally dropped here: the agent flow never used it (the * audio URL is persisted in cloud) and removing local file I/O keeps the * handler stateless. */ import type { HandlerContext, HandlerInput } from './index.js'; export declare function genVoice(input: HandlerInput, ctxIn: HandlerContext): Promise;