From 06b4855d6d0161197f6c5cd8d1fd682d69db45d7 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Mon, 21 Jan 2019 22:33:34 +0100 Subject: [PATCH] Set helpful configuration settings for the phonetic recognizer Copied from the PocketSphinx recognizer --- rhubarb/src/recognition/PhoneticRecognizer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rhubarb/src/recognition/PhoneticRecognizer.cpp b/rhubarb/src/recognition/PhoneticRecognizer.cpp index dff1956..262ba48 100644 --- a/rhubarb/src/recognition/PhoneticRecognizer.cpp +++ b/rhubarb/src/recognition/PhoneticRecognizer.cpp @@ -25,6 +25,13 @@ static lambda_unique_ptr createDecoder(optional dialo // Low values (<= 0.4) can lead to fluttering animation. // High values (>= 1.0) can lead to imprecise or freezing animation. "-lw", "0.8", + // Add noise against zero silence + // (see http://cmusphinx.sourceforge.net/wiki/faq#qwhy_my_accuracy_is_poor) + "-dither", "yes", + // Disable VAD -- we're doing that ourselves + "-remove_silence", "no", + // Perform per-utterance cepstral mean normalization + "-cmn", "batch", // The following settings are recommended at // http://cmusphinx.sourceforge.net/wiki/phonemerecognition