Prerequisites
-
Install ffmpeg
- macOS:
brew install ffmpeg - Ubuntu:
sudo apt-get install ffmpeg - Windows: Download from https://ffmpeg.org/download.html
- macOS:
-
Install mlx-whisper library
-
Prepare audio files
- Create a ‘storage/audio’ directory
- Place your audio files in this directory
- Supported formats: mp3, mp4, wav, etc.
-
Download sample audio (optional)
- Visit: https://www.ted.com/talks/reid_hoffman_and_kevin_scott_the_evolution_of_ai_and_how_it_will_impact_human_creativity
- Save the audio file to ‘storage/audio’ directory
Example
The following agent will use MLX Transcribe to transcribe audio files.cookbook/tools/mlx_transcribe_tools.py
Toolkit Params
Toolkit Functions
Information
- View on Github