https://github.com/agarwalkaushal/audio-converter
Audio converter using Python to any supported FFMPEG codec.
https://github.com/agarwalkaushal/audio-converter
audio-converter ffmpeg-command pydub python
Last synced: 11 days ago
JSON representation
Audio converter using Python to any supported FFMPEG codec.
- Host: GitHub
- URL: https://github.com/agarwalkaushal/audio-converter
- Owner: agarwalkaushal
- Created: 2018-11-01T20:02:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-04T07:34:16.000Z (over 7 years ago)
- Last Synced: 2025-01-18T16:52:31.027Z (over 1 year ago)
- Topics: audio-converter, ffmpeg-command, pydub, python
- Language: Python
- Homepage:
- Size: 3.01 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Audio-Converter
Convert your Audio files to any FFmpeg codec using python's pydub. For handling conversions, FFmpeg needs to be installed.
Set path to environmental variables or set path of FFmpeg's binary explicitly.
````
pydub.AudioSegment.converter = r"C:\\path\\to\\ffmpeg.exe"
````
In file-flac.py, replace format="mp3" with any other FFmpeg supported format. Also, get chunks of .raw files for audio processing using file-raw.py.
Don't wish to use python, work directly from command line.
````
cmd> ffmpeg -i input.mp3 output.flac
````
For transcribing large audio files, Google's speech-to-text requires audio with FLAC extention & mono channel,
````
cmd> ffmpeg -i output.flac -ac 1 mono.flac
````