session-level speech hints, strip trailing punctuation on continuous asr (#151)

This commit is contained in:
Dave Horton
2022-08-18 23:18:24 +02:00
committed by GitHub
parent 5b6f7dd3ee
commit 6346954e7a
4 changed files with 48 additions and 4 deletions

View File

@@ -261,6 +261,19 @@ class CallSession extends Emitter {
get recordState() { return this._recordState; }
set globalSttHints({hints, hintsBoost}) {
this._globalSttHints = {hints, hintsBoost};
}
get hasGlobalSttHints() {
const {hints = []} = this._globalSttHints || {};
return hints.length > 0;
}
get globalSttHints() {
return this._globalSttHints;
}
async notifyRecordOptions(opts) {
const {action} = opts;
this.logger.debug({opts}, 'CallSession:notifyRecordOptions');