Fix #24 - Timeout parameter whether to count it as a silence.
This commit is contained in:
parent
ee49ce2035
commit
f644d5c6de
2 changed files with 6 additions and 4 deletions
|
@ -259,6 +259,7 @@ class Condition(object):
|
||||||
|
|
||||||
# update stats:
|
# update stats:
|
||||||
story.stats['timeouts'] +=1
|
story.stats['timeouts'] +=1
|
||||||
|
if 'noReplyNeeded' not in self.vars or self.vars['noReplyNeeded'] is False:
|
||||||
if story.currentReply is None or not story.currentReply.hasUtterances():
|
if story.currentReply is None or not story.currentReply.hasUtterances():
|
||||||
story.stats['silentTimeouts'] +=1
|
story.stats['silentTimeouts'] +=1
|
||||||
story.stats['consecutiveSilentTimeouts'] += 1
|
story.stats['consecutiveSilentTimeouts'] += 1
|
||||||
|
|
|
@ -926,7 +926,8 @@ class Graph {
|
||||||
return {
|
return {
|
||||||
'timeout': {
|
'timeout': {
|
||||||
'seconds': { 'type': 'number', 'value': 10, 'min': 0, 'step': 0.1, 'unit': "s" },
|
'seconds': { 'type': 'number', 'value': 10, 'min': 0, 'step': 0.1, 'unit': "s" },
|
||||||
'onlyIfNoReply': { 'type': 'checkbox', label: "Only if no reply", "title": "This timeout is only used if the participant doesn't say a word. If the participant starts speaking within the time of this timeout condition, only other conditions are applicable." }
|
'onlyIfNoReply': { 'type': 'checkbox', label: "Only if no reply", "title": "This timeout is only used if the participant doesn't say a word. If the participant starts speaking within the time of this timeout condition, only other conditions are applicable." },
|
||||||
|
'noReplyNeeded': { 'type': 'checkbox', label: "No reply needed", "title": "If checked, the timeout is not counted for consecutive-timeouts (for diversions)." },
|
||||||
},
|
},
|
||||||
'replyContains': {
|
'replyContains': {
|
||||||
'delays.0.minReplyDuration': { 'type': 'number', 'value': 0, 'min': 0, 'step': 0.1, 'label': 'Delay 1 - reply duration', 'unit': "s", 'readonly': 'readonly' },
|
'delays.0.minReplyDuration': { 'type': 'number', 'value': 0, 'min': 0, 'step': 0.1, 'label': 'Delay 1 - reply duration', 'unit': "s", 'readonly': 'readonly' },
|
||||||
|
|
Loading…
Reference in a new issue