mirror of https://github.com/drowe67/LPCNet.git
about to reconfigure for just vk5apr and david
parent
0693c3c3db
commit
f86b8da270
|
|
@ -337,7 +337,7 @@ int main(int argc, char **argv) {
|
|||
fprintf(stderr, "\nOptions:\n");
|
||||
fprintf(stderr, " -c --c2pitch Codec 2 pitch estimator\n");
|
||||
fprintf(stderr, " -v --c2voicing Codec 2 voicing estimator\n");
|
||||
fprintf(stderr, " -i --mag ouput magnitudes Ly rather than dct(Ly)\n");
|
||||
fprintf(stderr, " -i --mag output magnitudes Ly rather than dct(Ly)\n");
|
||||
fprintf(stderr, " -n --nvec Number of training vectors to generate\n");
|
||||
fprintf(stderr, " -z --fuzz fuzz freq response and gain during training (default on)\n");
|
||||
exit(1);
|
||||
|
|
|
|||
|
|
@ -7,8 +7,14 @@
|
|||
# $ cd LPCNet/build_linux
|
||||
# $ ../src/tinytrain.sh
|
||||
|
||||
SRC=all_speech
|
||||
DATE=190804b
|
||||
SRC1=david_16kHz.wav # 122s
|
||||
SRC2=vk5apr_recording_21_may.wav # 64s
|
||||
SRC3=all_speechcat.sw
|
||||
SRC4=wianews-2019-01-20.s16
|
||||
SRC5=bob.wav
|
||||
SRC=train_src
|
||||
|
||||
DATE=190806b
|
||||
|
||||
synth() {
|
||||
./src/dump_data --mag --test --c2pitch --c2voicing ~/Downloads/$1.sw $1.f32
|
||||
|
|
@ -16,13 +22,21 @@ synth() {
|
|||
}
|
||||
|
||||
train() {
|
||||
./src/dump_data --mag --train --c2pitch --c2voicing -z 0 -n 1E6 ~/Downloads/$SRC.sw $SRC.f32 $SRC.pcm
|
||||
../src/train_lpcnet.py $SRC.f32 $SRC.pcm lpcnet_$DATE
|
||||
../src/dump_lpcnet.py lpcnet_"$DATE"_10.h5
|
||||
cp nnet_data.c src
|
||||
make test_lpcnet
|
||||
sox ~/Downloads/$SRC1 \
|
||||
-r 16000 ~/Downloads/$SRC2 \
|
||||
-t sw -r 16000 ~/Downloads/$SRC3 \
|
||||
-t sw -r 16000 -c 1 ~/Downloads/$SRC4 \
|
||||
~/Downloads/$SRC5 \
|
||||
-t sw $SRC.sw
|
||||
./src/dump_data --mag --train --c2pitch --c2voicing -z 1 $SRC.sw $SRC.f32 $SRC.pcm
|
||||
../src/train_lpcnet.py $SRC.f32 $SRC.pcm lpcnet_$DATE
|
||||
../src/dump_lpcnet.py lpcnet_"$DATE"_10.h5
|
||||
cp nnet_data.c src
|
||||
make test_lpcnet
|
||||
}
|
||||
|
||||
train
|
||||
synth c01_01 $DATE'_f'
|
||||
synth mk61_01 $DATE'_m'
|
||||
#synth c01_01 $DATE'_f'
|
||||
#synth mk61_01 $DATE'_m'
|
||||
synth bob $DATE'_bob'
|
||||
synth wia $DATE'_wia'
|
||||
|
|
|
|||
Loading…
Reference in New Issue