Files
SnapOtter/apps/docs/ja/tools/audio/transcribe-audio.md
T
SnapOtterandGitHub 4963ab3bbd feat(docs-i18n): translate all documentation into 20 languages
All 181 docs markdown files translated into 20 languages (apps/docs/<locale>/**). Companion to the i18n code PR; admin-merged because the file count exceeds GitHub's per-PR CI trigger limit. Validated by pnpm i18n:check (all surfaces, 0 stale/missing) and a clean all-locale docs build.
2026-07-11 13:52:47 +08:00

2.3 KiB

description, i18n_source_hash, i18n_provenance, i18n_output_hash
description i18n_source_hash i18n_provenance i18n_output_hash
AI を活用した文字起こしで音声をテキストに変換します。 ae98c4c0aed2 human b75787b6745a

Transcribe Audio

AI を活用した文字起こし(faster-whisper)で音声をテキストに変換します。プレーンテキスト、SRT、VTT の出力形式に対応し、言語の自動または手動選択が可能です。

API Endpoint

POST /api/v1/tools/audio/transcribe-audio

音声ファイルと JSON settings フィールドを含む multipart フォームデータを受け付けます。

Parameters

Parameter Type Required Default Description
language string No "auto" 言語: autoendefreszhjakoidthvi
outputFormat string No "txt" 出力形式: txtsrtvtt

Example Request

curl -X POST http://localhost:1349/api/v1/tools/audio/transcribe-audio \
  -H "Authorization: Bearer si_your-api-key" \
  -F "file=@audio.mp3" \
  -F 'settings={"language": "en", "outputFormat": "srt"}'

Example Response

これは非同期ツールです。API はただちに 202 Accepted を返します:

{
  "jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "async": true
}

GET /api/v1/jobs/{jobId}/progress の SSE で進捗を追跡します。ジョブが完了すると、SSE ストリームが downloadUrl とともに最終結果を配信します。

Notes

  • transcription 機能バンドルのインストールが必要です。バンドルが利用できない場合、コード FEATURE_NOT_INSTALLED、不足している featurefeatureNameestimatedSize とともに 501 を返します。
  • 文字起こしには faster-whisper を使用します。言語 auto は、話されている言語を自動検出します。
  • srtvtt 形式は各セグメントのタイムスタンプを含み、字幕に適しています。
  • txt 形式はタイムスタンプなしのプレーンテキストを返します。
  • これは実行時間の長い AI ツールです。処理時間は音声の長さとサーバーのハードウェアに依存します。