Introduction
When using Salad Transcription API, audio files have a maximum length limit of 2.5 hours each. If you have audio files longer than this to transcribe, you will need to split these into shorter segments first.Prerequisites
Before you begin, make sure you have:- Python Installed: Ensure you have Python 3.8 or higher.
- Libraries Installed: Use the following command to install the required libraries:
- FFmpeg Installed: FFmpeg is needed by pydub for processing audio:
- Linux:
sudo apt install ffmpeg
- MacOS:
brew install ffmpeg
- Windows: Download FFmpeg and add it to your system PATH.
- Linux:
Last Updated: February 28, 2025
Splitting the audio files
1. Create the script:
Create a Python script namedsplit_audio.py
to split the audio file:
2. Run the script:
