Gladia API current limitations
- Audio length (pre-recorded): The maximum length of audio that can be transcribed in a single request is currently 135 minutes. Attempts to transcribe longer audio files will result in an error.
- Realtime session duration: For live (realtime) transcription, a single WebSocket session cannot exceed 3 hours. The session will be terminated after 3 hours; for longer events, start a new session before reaching the limit.
- File size: Audio files must not exceed 1000 MB in size. Larger files will not be accepted by the API.
Splitting oversize audio files
For audio files that are near or exceed the limitations on length and size, it is recommended to split them into smaller chunks of ~60 minutes each. This approach not only adheres to the API constraints but also generally yields better transcription results. Tools for Splitting Audio Files:- FFMPEG : FFMPEG is a versatile command-line tool that can be used to manipulate audio and video files. It is a popular choice for splitting long audio files.
- ffmpeg-python : For Python users, ffmpeg-python is a wrapper around FFMPEG that provides a more Pythonic interface for interacting with FFMPEG.
- prism-media for Node.js : Node.js users can use prism-media for manipulating media files, including splitting audio files.
- fluent-ffmpeg for Node.js : Another option for Node.js users is fluent-ffmpeg, which offers a simpler and more fluent API for handling media files.