How to transcribe audio and video files to text with one API call (MP3, MP4, Google Drive, Dropbox)
说明与用途
通过单个 API 调用实现音频和视频文件的自动转录,整合音频提取、分块、共享链接处理,并返回文本和 SRT。
问题
Transcribing large or remote audio/video files is cumbersome due to size limits, format requirements, and share‑link handling.
结果
A 50‑minute MP3 from Dropbox was transcribed in ~40 s for $0.15 (≈$0.003 per minute).
工作流
- Provide file URLs (direct or share links) or upload a file
- API extracts audio from video if needed
- Splits large files into 10‑minute chunks
- Transcribes each chunk with Whisper large‑v3
- Adjusts timestamps for each chunk
- Combines text and segments
- Returns JSON with status, fileName, language, duration, text, segments, and optional SRT
证据
A 50-minute MP3 shared through Dropbox was transcribed in about 40 seconds and cost $0.15.
Whisper wants audio. Pull the audio track out with ffmpeg first, and shrink it while you are there, since speech models work on 16 kHz mono anyway:
A Google Drive or Dropbox share link opens a preview page, not the file. You need the direct-download form:
- 记录日期: 2026-10-05T17:40:48.320Z