mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-27 22:04:25 +00:00
add stability instead of final
This commit is contained in:
1 parent
f1c17e537d
commit
09c2608114
1 file changed
+1
-1
+1
-1
@@ -314,7 +314,7 @@ class TaskGather extends Task {
|
||||
}
|
||||
if (evt.is_final) this._resolve('speech', evt);
|
||||
else {
|
||||
if (evt.is_final && this.bargein && evt.alternatives[0].transcript.split(' ').length >= this.minBargeinWordCount) {
|
||||
if (evt.stability > 0.70 && this.bargein && evt.alternatives[0].transcript.split(' ').length >= this.minBargeinWordCount) {
|
||||
this.logger.debug('Gather:_onTranscription - killing audio due to bargein');
|
||||
this._killAudio(cs);
|
||||
this._resolve('speech', evt);
|
||||
|
||||
Reference in new issue
Block a user