mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 00:58:34 +00:00
minor: allow hints not to be specified
This commit is contained in:
@@ -115,7 +115,7 @@ class TaskGather extends SttTask {
|
|||||||
|
|
||||||
if (cs.hasGlobalSttHints && !this.maskGlobalSttHints) {
|
if (cs.hasGlobalSttHints && !this.maskGlobalSttHints) {
|
||||||
const {hints, hintsBoost} = cs.globalSttHints;
|
const {hints, hintsBoost} = cs.globalSttHints;
|
||||||
const setOfHints = new Set(this.data.recognizer.hints
|
const setOfHints = new Set((this.data.recognizer.hints || [])
|
||||||
.concat(hints)
|
.concat(hints)
|
||||||
.filter((h) => typeof h === 'string' && h.length > 0));
|
.filter((h) => typeof h === 'string' && h.length > 0));
|
||||||
this.data.recognizer.hints = [...setOfHints];
|
this.data.recognizer.hints = [...setOfHints];
|
||||||
|
|||||||
Reference in New Issue
Block a user