Transcrybe is a small command-line tool that transcribes MP3 audio files into
text using Google Speech Recognition. It splits long audio into smaller chunks,
processes each chunk, and writes the result to transcription.txt.
- Transcribes MP3 files to text.
- Splits long audio into smaller chunks automatically.
- Supports a configurable language code.
- Cleans up temporary chunk files after processing.
- Python 3.7 or higher
- FFmpeg
- Python packages listed in
requirements.txt
- Install FFmpeg.
For macOS:
brew install ffmpegFor Ubuntu or Debian:
sudo apt-get install ffmpegFor Windows:
Install FFmpeg and make sure it is available on your PATH.
- Install the Python dependencies:
pip install -r requirements.txtRun the script from the command line:
python transcriber.py <mp3_file_path> [--language <language_code>]<mp3_file_path>: Path to the MP3 file to be transcribed.--language: Language code for transcription. Defaults toen-US.
python transcriber.py my_audio.mp3 --language en-USThe transcribed text is saved to transcription.txt in the current directory.
- Transcription quality depends on the clarity of the audio.
- If a chunk cannot be understood, the script writes
[Unintelligible]. - The script uses Google Speech Recognition through the
SpeechRecognitionPython package.
This project is licensed under the MIT License. See LICENSE for
details.