diff --git a/unittest/birch_190727e_targ.raw b/unittest/birch_190727e_targ.raw deleted file mode 100644 index 0824d9b..0000000 Binary files a/unittest/birch_190727e_targ.raw and /dev/null differ diff --git a/unittest/c01_01_190804a_targ.raw b/unittest/c01_01_190804a_targ.raw new file mode 100644 index 0000000..8bb9776 Binary files /dev/null and b/unittest/c01_01_190804a_targ.raw differ diff --git a/unittest/c01_01_mag.f32 b/unittest/c01_01_mag.f32 new file mode 100644 index 0000000..b7f1aab Binary files /dev/null and b/unittest/c01_01_mag.f32 differ diff --git a/unittest/lpcnet_190727e.f32 b/unittest/lpcnet_190804a.f32 similarity index 55% rename from unittest/lpcnet_190727e.f32 rename to unittest/lpcnet_190804a.f32 index d5c8429..9e38953 100644 Binary files a/unittest/lpcnet_190727e.f32 and b/unittest/lpcnet_190804a.f32 differ diff --git a/unittest/test_core_nn.sh b/unittest/test_core_nn.sh index 9157df9..392c897 100755 --- a/unittest/test_core_nn.sh +++ b/unittest/test_core_nn.sh @@ -54,15 +54,15 @@ if [ ! -z $SYNTH_20h ]; then echo "synth .raw OK" fi -# Testing log mag operation, using 190727e network. Not checking states in this test +# Testing log mag operation, using 190804a network. Not checking states in this test if [ ! -z $SYNTH_mag ]; then - ../build_linux/src/dump_data --mag --test --c2pitch ../wav/birch.wav birch.f32 - diff birch_mag.f32 birch.f32 || { echo "ERROR in synth .f32 output! Exiting..."; exit 1; } - echo "synth .f32 OK" - ../build_linux/src/test_lpcnet --mag -n lpcnet_190727e.f32 birch.f32 birch_out.raw - diff birch_190727e_targ.raw birch_out.raw || { echo "ERROR in synth .raw output! Exiting..."; exit 1; } - echo "synth .raw OK" + ../build_linux/src/dump_data --mag --test --c2pitch ../wav/c01_01.wav c01_01.f32 + diff c01_01_mag.f32 c01_01.f32 || { echo "ERROR in synth .f32 output! Exiting..."; exit 1; } + echo "mag .f32 OK" + ../build_linux/src/test_lpcnet --mag -n lpcnet_190804a.f32 c01_01.f32 c01_01_out.raw + diff c01_01_190804a_targ.raw c01_01_out.raw || { echo "ERROR in synth .raw output! Exiting..."; exit 1; } + echo "mag .raw OK" fi echo "all tests PASSED" diff --git a/wav/c01_01.wav b/wav/c01_01.wav new file mode 100644 index 0000000..d85553d Binary files /dev/null and b/wav/c01_01.wav differ