/LPCNet_pytorch

A Pytorch version of LPCNet, including dump weight

Primary LanguagePython

LPCNet_pytorch

A Pytorch version of LPCNet, including dump weight

Download Data

Use together with the C code of this repo. Suitable training material can be obtained from the McGill University Telecommunications & Signal Processing Laboratory. Download the ISO and extract the 16k-LP7 directory, the src/concat.sh script can be used to generate a headerless file of training samples.

cd 16k-LP7
sh /path/to/concat.sh

Dump Training Data

Use together with this repo.

./dump_data -train input.s16 features.f32 data.u8

Training

python main.py --feat features.f32 --data data.u8

Testing

./dump_data -test test_input.s16 test_features.f32
python test.py --feat test_features.f32

Dump LPCNet weights

python dump_lpcnet.py --load <path/to/checkpoint>