Allowing for long pauses in speech without breaking sync
This commit is contained in:
parent
c425885929
commit
7aa6057b8e
|
@ -52,6 +52,9 @@ lambda_unique_ptr<cmd_ln_t> createConfig(path sphinxModelDirectory) {
|
||||||
"-lm", (sphinxModelDirectory / "en-us.lm.bin").string().c_str(),
|
"-lm", (sphinxModelDirectory / "en-us.lm.bin").string().c_str(),
|
||||||
// Set pronounciation dictionary
|
// Set pronounciation dictionary
|
||||||
"-dict", (sphinxModelDirectory / "cmudict-en-us.dict").string().c_str(),
|
"-dict", (sphinxModelDirectory / "cmudict-en-us.dict").string().c_str(),
|
||||||
|
// Allow for long pauses in speech
|
||||||
|
"-vad_prespeech", "3000",
|
||||||
|
"-vad_postspeech", "3000",
|
||||||
nullptr),
|
nullptr),
|
||||||
[](cmd_ln_t* config) { cmd_ln_free_r(config); });
|
[](cmd_ln_t* config) { cmd_ln_free_r(config); });
|
||||||
if (!config) throw runtime_error("Error creating configuration.");
|
if (!config) throw runtime_error("Error creating configuration.");
|
||||||
|
|
Loading…
Reference in New Issue