Audio file
(Audio from https://github.com/maxrmorrison/torchcrepe/blob/master/tests/assets/test.wav)
Pitch (F0) per 10ms
full model
tiny model
This model requires additional module.
pip3 install librosa
pip3 install soundfile
Automatically downloads the onnx and prototxt files on the first run. It is necessary to be connected to the Internet while downloading.
For the sample wav,
$ python3 crepe.py
If you want to specify the audio, put the file path after the --input
option.
$ python3 crepe.py --input AUDIO_FILE
Specify the f0 option to infer a model that uses f0. You can choice crepe
or crepe_tiny
for f0_method.
python3 crepe.py --f0_method crepe_tiny
Specify the --evaluate
option, you can be compared with the f0 using pyworld.
python3 crepe.py --f0_method crepe_tiny --evaluate
Pytorch
ONNX opset=11