rhubarb-lip-sync/lib/pocketsphinx-rev13216/test/unit/test_ps_fwdtree_bestpath.c

26 lines
714 B
C
Raw Normal View History

2015-10-19 19:45:08 +00:00
#include <pocketsphinx.h>
#include <stdio.h>
#include <string.h>
#include "pocketsphinx_internal.h"
#include "test_macros.h"
#include "ps_test.c"
int
main(int argc, char *argv[])
{
cmd_ln_t *config;
TEST_ASSERT(config =
cmd_ln_init(NULL, ps_args(), TRUE,
"-hmm", MODELDIR "/en-us/en-us",
"-lm", MODELDIR "/en-us/en-us.lm.bin",
"-dict", MODELDIR "/en-us/cmudict-en-us.dict",
"-fwdtree", "yes",
"-fwdflat", "no",
"-bestpath", "yes",
"-input_endian", "little",
"-samprate", "16000", NULL));
return ps_decoder_test(config, "BESTPATH", "go forward ten meters");
}