The minimum audio duration for a file submitted to our API is 160ms. Files submitted to our API that are shorter than 160ms will return an error:Documentation Index
Fetch the complete documentation index at: https://assemblyai.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
- Add error handling for this error message: When this error occurs, handle it safely by checking the error string and returning the error.
- Add pre-submit checks for the duration of the audio file: Prior to submitting a file for transcription, check the duration using a tool like soxi (part of the SoX package):
soxi -D audio.mp3