Allowing for long pauses in speech without breaking sync

This commit is contained in:
Daniel Wolf 2016-01-28 21:52:50 +01:00
parent c425885929
commit 7aa6057b8e
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ lambda_unique_ptr<cmd_ln_t> createConfig(path sphinxModelDirectory) {
"-lm", (sphinxModelDirectory / "en-us.lm.bin").string().c_str(),
// Set pronounciation dictionary
"-dict", (sphinxModelDirectory / "cmudict-en-us.dict").string().c_str(),
// Allow for long pauses in speech
"-vad_prespeech", "3000",
"-vad_postspeech", "3000",
nullptr),
[](cmd_ln_t* config) { cmd_ln_free_r(config); });
if (!config) throw runtime_error("Error creating configuration.");