26 lines
712 B
C
26 lines
712 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",
|
||
|
"-fwdtree", "yes",
|
||
|
"-fwdflat", "no",
|
||
|
"-bestpath", "no",
|
||
|
"-input_endian", "little",
|
||
|
"-samprate", "16000", NULL));
|
||
|
return ps_decoder_test(config, "FWDTREE", "go forward ten meters");
|
||
|
}
|