mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
session-level speech hints, strip trailing punctuation on continuous asr (#151)
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user