用 AI 导演准备配音稿
创建一个异步的 AI 导演任务:读懂原文和可选的要求,按目标声音和模型写好情绪、表演、音效、停顿和读音,返回一份可以直接合成的配音稿,不改动原文;没有指定声音或模型时会推荐一个,并给出备选,每个都带名字、试听链接和理由。把每一稿的 `synthesis` 原样作为 `POST /v1/audio/speech` 的请求体;`synthesis` 为 `null` 的稿子不能直接合成。完成后按实际输入、输出和推理 token 计费;提交时,余额需不低于这段文字的预估费用(按能力目录的每千字预估折算,不足 1,000 字按 1,000 字计),本账号如有另一个进行中的 AI 导演任务,还要加上它的预估;每个账号最多同时进行 2 个 AI 导演任务。`directed` 为 `false`(AI 导演没能完成演绎),或复用了同一段文字之前的理解时,不收费。
下方的接口说明(参数、请求和响应)是英文原文,字段名与接口完全一致。
Request Body
application/jsonRequiredmetadataMetadataCaller-supplied metadata; ≤16 keys, key ≤64 chars, value ≤512 chars
callback_urlCallback UrlHTTPS URL Beatra will POST the final Task envelope to when the Task reaches a terminal state
callback_signing_key_idCallback Signing Key IdOptional standalone callback signing key. Omit for unsigned callback delivery; requires callback_url when provided.
inputText to perform, in any supported language, 1 to 50,000 characters. It may already contain Beatra speech markup such as {pause 0.5} or {pron 行 hang2}; the AI Director keeps it and only adds to it. The words themselves are never changed.
1Maximum length: 50000instructionsInstructionsOptional requirements in natural language, in any language, up to 2,000 characters, for example "a bit suspenseful, whisper the last line". Without them the AI Director performs the text by its meaning.
voiceVoiceOptional voice to perform for: a preset voice or one of your own cloned voices. Same meaning as voice in POST /v1/audio/speech. Omit it to let the AI Director recommend a voice.
modelModelOptional speech model to perform for, with the same values and defaults as model in POST /v1/audio/speech. auto or omitted: resolved from the voice, or recommended together with the voice.
"auto"Value in: "auto" | "minimax-speech-2.8-hd" | "minimax-speech-2.8-turbo" | "doubao-seed-tts-2.0" | "elevenlabs-v4-turbo" | "elevenlabs-v4"languageLanguageLanguage of the input as a BCP-47 tag. Usually omit it (auto, the default): the language is detected. Send it only when the user names the language or a dialect the text cannot show, such as Cantonese (yue).
"auto"Minimum length: 2Maximum length: 32contextAny properties in SpeechScriptContextOptional, advanced: the text around the input when a long text is directed in parts, used only to understand the tone. It is not annotated, read aloud or returned. The end of before is also suggested as previous_text when the target model supports it.
Header Parameters
X-Request-IdstringOptional client request id echoed in the response.
Idempotency-Key1Maximum length: 128AuthorizationBearer API key.
Task accepted
最后更新