config: fixes from bargein testing

This commit is contained in:
Dave Horton
2022-04-04 12:40:18 -04:00
parent 81f6163aca
commit bf21a1f9a4
4 changed files with 21 additions and 15 deletions

View File

@@ -236,7 +236,7 @@ class TaskGather extends Task {
GOOGLE_SPEECH_USE_ENHANCED: true,
GOOGLE_SPEECH_SINGLE_UTTERANCE: true,
GOOGLE_SPEECH_MODEL: 'command_and_search',
GOOGLE_SPEECH_ENABLE_AUTOMATIC_PUNCTUATION: this.punctuation
GOOGLE_SPEECH_ENABLE_AUTOMATIC_PUNCTUATION: !!this.punctuation
});
if (this.hints && this.hints.length > 1) {
opts.GOOGLE_SPEECH_HINTS = this.hints.map((h) => h.trim()).join(',');