mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
gather defaults to multiple utterances
This commit is contained in:
@@ -105,7 +105,7 @@ class TaskGather extends Task {
|
||||
get needsStt() { return this.input.includes('speech'); }
|
||||
|
||||
get wantsMultipleUtterances() {
|
||||
return this.data.recognizer?.singleUtterance === false;
|
||||
return this.data.recognizer?.singleUtterance !== true;
|
||||
}
|
||||
|
||||
get earlyMedia() {
|
||||
|
||||
@@ -343,7 +343,7 @@ module.exports = (logger) => {
|
||||
...(rOpts.profanityFilter && {GOOGLE_SPEECH_PROFANITY_FILTER: 1}),
|
||||
...(rOpts.punctuation && {GOOGLE_SPEECH_ENABLE_AUTOMATIC_PUNCTUATION: 1}),
|
||||
...(rOpts.words && {GOOGLE_SPEECH_ENABLE_WORD_TIME_OFFSETS: 1}),
|
||||
...((rOpts.singleUtterance || task.name === TaskName.Gather) &&
|
||||
...((rOpts.singleUtterance /*|| task.name === TaskName.Gather*/) &&
|
||||
{GOOGLE_SPEECH_SINGLE_UTTERANCE: 1}),
|
||||
...(rOpts.singleUtterance === false && {GOOGLE_SPEECH_SINGLE_UTTERANCE: 0}),
|
||||
...(rOpts.diarization && {GOOGLE_SPEECH_SPEAKER_DIARIZATION: 1}),
|
||||
|
||||
Reference in New Issue
Block a user