freeswitch/libs/libcodec2/unittest
2015-02-16 16:25:35 -06:00
..
create_interleaver.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
de.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
dvdongle2.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
extract.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
ge_train.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
genampdata.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
genlsp.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
genphdata.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
genres.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
lsp1.txt Working codec2 support 2010-09-21 12:35:41 -05:00
lsp2.txt Working codec2 support 2010-09-21 12:35:41 -05:00
lsp3.txt Working codec2 support 2010-09-21 12:35:41 -05:00
lsp4.txt Working codec2 support 2010-09-21 12:35:41 -05:00
lsp5.txt Working codec2 support 2010-09-21 12:35:41 -05:00
lsp6.txt Working codec2 support 2010-09-21 12:35:41 -05:00
lsp7.txt Working codec2 support 2010-09-21 12:35:41 -05:00
lsp8.txt Working codec2 support 2010-09-21 12:35:41 -05:00
lsp9.txt Working codec2 support 2010-09-21 12:35:41 -05:00
lsp10.txt Working codec2 support 2010-09-21 12:35:41 -05:00
lsp45678910.txt grr more 2012-12-20 20:14:35 -06:00
lspd78.txt Working codec2 support 2010-09-21 12:35:41 -05:00
lspd123.txt Working codec2 support 2010-09-21 12:35:41 -05:00
lspd456.txt Working codec2 support 2010-09-21 12:35:41 -05:00
lspd910.txt Working codec2 support 2010-09-21 12:35:41 -05:00
lspd678910.txt grr more 2012-12-20 20:14:35 -06:00
lspjnd5-10.txt grr more 2012-12-20 20:14:35 -06:00
lspsync.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
lsptest.c Working codec2 support 2010-09-21 12:35:41 -05:00
Makefile.am FS-7122: Working with william to find a better way 2015-02-16 16:25:35 -06:00
mksine.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
polar2rect.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
pre.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
README git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
run_tests.sh git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
scalarlsptest.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
sd.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
sd.h i've tested, now you can too 2012-12-20 20:08:42 -06:00
speexlsptest.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
t48_8.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
tcodec2.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
tcontphase.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
tfdmdv.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
tfifo.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
tinterp.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
tlspsens.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
tnlp.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
tprede.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
tquant.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
tsrc.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
vq_train_jvm.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
vqtrain.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
vqtrainjnd.c sigh... git you failed 2012-12-20 20:15:24 -06:00
vqtrainph.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
vqtrainsp.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00

README
for codec2/unittest
Created David Rowe 31 July 2012

Training (experimental) sparse phase VQs:

1/ In ../src/phase.c phase_experiment() enable:

   print_sparse_pred_error()

   and 'make' c2sim (in src)

2/ Run over a training database:

  $ ./c2sim /xhome1/codec2/samples/train.spc --phaseexp > train_phtrain.txt

  a) check stats in Octave:
     octave> load ../src/train_phtrain.txt
     octave> std(nonzeros(train_phtrain(:,1:20)))
     octave> hist(nonzeros(train_phtrain(:,1:20)),20)
3/ Extract and convert to floats vector you wish to train for example
   first 20 (out of MAX_AMP == 80):

  $ ./extract ../src/train_phtrain.txt train_phtrain.flt 1 20

4/ Convert to rectangular:

  $ ./polar2rect train_phtrain.flt train_phtrainr.flt

5/ Run this program:

  $ ./vqtrainph train_phtrainr.flt 20 1024 vq.txt

  Ouput is vq.txt

Tests
-----

+ build up insmallest possible stesp
+ impl errors v alg errors
+ use actual phase data as codebook
+ test vq with rand phases first or known data