预检语音合成
下方的接口说明(参数、请求和响应)是英文原文,字段名与接口完全一致。
Request Body
application/jsonRequiredvoiceOpaque Beatra voice_id (preset or cloned)
inputText to synthesize. It may contain speech markup such as {pause 0.5}, {laugh}, {pron 行 hang2} or {sub W3C 万维网联盟}; read the vocabulary and limits from the model card (beatra.models.list). Some models also accept inline emotion and performance markup, listed under script_markup on their card; other models skip it with a warning. Malformed markup is corrected or skipped with a markup_adjusted warning instead of failing the request. Some models accept fewer characters; read constraints.input_max_characters on the model card (ElevenLabs models: 10,000).
1Maximum length: 50000modelModelModel to check against (default auto)
"auto"Value in: "auto" | "minimax-speech-2.8-hd" | "minimax-speech-2.8-turbo" | "doubao-seed-tts-2.0" | "elevenlabs-v4-turbo" | "elevenlabs-v4"languageLanguageBCP-47 language hint
formatFormatAudio format the create call would use
"mp3"Value in: "mp3" | "wav" | "flac" | "opus" | "pcm"sample_rateSample RateSample rate in Hz for the chosen format
speedSpeedSpeaking rate (0.5 to 2.0)
1Minimum: 0.5Maximum: 2volumeVolumeVolume (0 to 10)
1Maximum: 10pitchPitchNormalized pitch (-1.0 to 1.0)
0Minimum: -1Maximum: 1emotionEmotionEmotion preset for the whole request
subtitle_enableSubtitle EnableWhether the create call would request subtitles
falsedirectionDirectionOptional natural-language performance direction for the whole request, for example '像在耳边说悄悄话一样,轻声地说' or 'read it like breaking news'. Models and voices that follow it list direction under controls on their model card (with direction_max_characters); anywhere else it is ignored with an option_ignored warning. Effects vary with the voice and the text and are not a guarantee of intensity.
previous_textPrevious TextOptional text that comes right before this clip, for example the previous line of a dialogue or the previous paragraph, so separate calls keep a continuous tone. It is never spoken and never billed; any length is accepted and only its end is used (previous_text_tail_characters on the model card). Models and voices that do not use it ignore it with an option_ignored warning.
model_optionsModel OptionsExpert provider options, same as the create call
Header Parameters
AuthorizationBearer API key.
X-Request-IdstringOptional client request id echoed in the response.
Validation report
最后更新