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

28 lines
645 B
C

#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",
"-lw", "6.5",
"-fwdflatlw", "6.5",
"-fwdtree", "yes",
"-fwdflat", "yes",
"-bestpath", "no",
"-input_endian", "little",
"-samprate", "16000", NULL));
return ps_decoder_test(config, "FWDFLAT", "go forward ten meters");
}