Fix #24 - Timeout parameter whether to count it as a silence.

This commit is contained in:
Ruben van de Ven 2019-03-27 15:43:02 +01:00
parent ee49ce2035
commit f644d5c6de
2 changed files with 6 additions and 4 deletions

View file

@ -259,6 +259,7 @@ class Condition(object):
# update stats:
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():
story.stats['silentTimeouts'] +=1
story.stats['consecutiveSilentTimeouts'] += 1

View file

@ -926,7 +926,8 @@ class Graph {
return {
'timeout': {
'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': {
'delays.0.minReplyDuration': { 'type': 'number', 'value': 0, 'min': 0, 'step': 0.1, 'label': 'Delay 1 - reply duration', 'unit': "s", 'readonly': 'readonly' },