Because Cloudflare Workers limits the size of a single file to 25MB, large audio files need to be split manually:
- Split file: Cut the audio into small chunks of about 1MB (use tools like FFmpeg).
- Block-by-block uploading: Send each chunk in turn via the API to the
/raw
maybe/srt
Interface. - Consolidated results: Splices the returned JSON or SRT data by timestamp.take note of: Need to ensure that contextual continuity is preserved when chunking to avoid transcription errors.
For example, a 41-minute audio test showed a processing time of about 1.9 minutes, and the total elapsed time needs to be estimated after segmentation.
This answer comes from the articleWhisper on Cloudflare AI: a free tool to convert audio to text and generate subtitlesThe