音声をテキストに文字起こしする
Creates an asynchronous speech-to-text transcription task (0.5 seconds to 60 minutes, up to 100 MiB). With `model="auto"`, standard transcription routes to `doubao-seed-asr-2.0` while requests setting `tag_audio_events=true` or `num_speakers` automatically route to `elevenlabs-scribe-v3` when available. Charged per started input audio minute. When the task succeeds, `output` contains `{type: "speech_to_text", model, text, language, duration_seconds, segments, audio_events, subtitles}`.
以下のエンドポイント仕様(パラメーター、リクエスト、レスポンス)は英語の原文です。フィールド名は API と同じです。
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.
audioSource audio file (artifact_id or HTTPS url; 0.5-3600.0 seconds, <= 100 MiB). Accepts audio or source.
modelModelSpeech-to-text model identifier, or 'auto' for automatic selection (defaults to doubao-seed-asr-2.0, or upgrades to elevenlabs-scribe-v3 when tag_audio_events=true or num_speakers is passed).
"auto"Value in: "auto" | "doubao-seed-asr-2.0" | "elevenlabs-scribe-v3"languageLanguageLanguage hint (auto or BCP-47 tag such as zh, en, ja-JP).
"auto"diarizeDiarizeAnnotate speaker turns in transcript segments when true.
falsenum_speakersNum SpeakersOptional expected speaker count hint (1-32).
tag_audio_eventsTag Audio EventsDetect non-speech audio events such as laughter, applause, or music.
falsesubtitlesSubtitlesEmit timed subtitle artifacts (json, srt, vtt) alongside the transcript.
truemodel_optionsModel OptionsOptional model-family-specific options (for example, {"elevenlabs": {...}} or {"doubao": {...}}). Unrecognized or surcharged keys emit an option_ignored warning.
Header Parameters
X-Request-IdstringOptional client request id echoed in the response.
Idempotency-Key1Maximum length: 128AuthorizationBearer API key.
Task accepted
最終更新