mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-27 22:11:10 +00:00
29 lines
589 B
Markdown
29 lines
589 B
Markdown
# Audio Converter
|
|
|
|
CLI tool to convert an audio file from one extension to another (e.g. mp3 to wav)
|
|
|
|
## Requirements
|
|
- [FFmpeg](https://ffmpeg.org/)
|
|
|
|
## Usage
|
|
|
|
### Convert all audio files in a specific directory
|
|
```bash
|
|
python3 audio-converter.py -p <YOUR-PATH-WAS-HERE> -e <THE-DESIRED-EXTENSION>
|
|
```
|
|
|
|
e.g.
|
|
```bash
|
|
python3 audio-converter.py -p /home/username/Music -e .wav
|
|
```
|
|
|
|
### Convert specific audio file
|
|
```bash
|
|
python3 audio-converter.py -p <YOUR-PATH-WAS-HERE> -e <THE-DESIRED-EXTENSION>
|
|
```
|
|
|
|
e.g.
|
|
```bash
|
|
python3 audio-converter.py -p /home/username/Music/test.mp3 -e .wav
|
|
```
|