wave_splitter provide audio split feature. This tool have to use Python version 2.7. Cannot run this tools under Python 3.X.
-
Install third party library called Click into your Python environment.
$ pip install click
-
Clone wave_splitter where you want it installed(ex: ~/.bin) and set the PATH environment variable.
$ git clone https://github.com/osam023/WaveSplitter.git ~/.bin $ echo "export PATH=$PATH:$HOME/.bin" >> ~/.bash_profile
ATTENTION: If you already have .bin directory, then you change current directory to .bin. And clone the wave_splitter.
-
Add execute authority.
$ chmod +x ~/.bin/wave_splitter
-
Restart your shell.
-
Check the wave_splitter install success.
$ wave_splitter --version
NOTE:
If you cannot execute wave_splitter, Set execute authority that program($ chmod +x wave_splitter
).
You can split the audio file by executing below command. If you have to more information, use --help option.
$ wave_splitter --split-size [split size] --input-file [input file path] --output-dir [output directory path]
example:
$ wave_splitter --split-size 4 --input-file foo.wav --output-dir ./output/
option(long) | option(short) | required | description |
---|---|---|---|
--split-size | -s | NO | Split size number. Default is 2. |
--input-file | -i | YES | Input audio file path. |
--output-dir | -o | NO | Output directory path. Default is /out/ of the same path as the input file. |
See LICENSE file.