Generating text of the audio file.
- Python3+
- pygame
- pydub
- SpeechRecognition
- ffmpeg
-
Python packages
$ pip3 install -r requirements.txt
-
ffmpeg
# Ubuntu $ sudo apt install ffmpeg # Mac $ brew install ffmpeg
For
Windows
, you can refer to this website: ffmpeg install
-
$ python audio_recognition.py -f <wav file>
-
We need to convert
mp3
towav
, so we need to use-c
argument.$ python audio_recognition.py -f <mp3 file> -c
$ python3 audio_recognition_app.py