mycroft-core/mycroft/util
penrods 55b3f20bf3 Increase min wait time in wait_while_speaking()
In code like this:
   self.speak_dialog("something")
   mycroft.audio.wait_while_speaking()
It was possible that the speaking of "something" would take longer to
start than the 0.1 seconds that was built into the wait_while_speaking().
The definition of this behavior is slightly fuzzy, but this is definitely
a case where the expectation is that previous request for speech would
start and complete.  For now, I have just bumped the minimum wait to
0.3 seconds.

In the long run we might consider tracking specific speak requests and
generating a notification when that request has been serviced.  Then the
skill could automatically hold off until that request has been serviced.
But the basic skill code won't have to change to make this happen, so
this additional sleep is adequate for today.

Also snuck in a minor change to a comment.
2017-11-22 13:21:23 -06:00
..
__init__.py Add minimum diskspace for curate_cache 2017-10-26 18:05:57 -05:00
audio_test.py Add notifications when starting/stopping recording 2017-10-04 21:56:02 -05:00
download.py Update download method 2017-10-26 18:42:19 -04:00
format.py Pt-PT translation (#1049) 2017-10-26 19:18:00 -04:00
json_helper.py Change to Apache 2.0 license from GPLv3.0 2017-10-04 01:28:44 -05:00
log.py Merge pull request #1120 from MycroftAI/feature/fix-log-autocomplete 2017-10-07 13:06:15 +02:00
parse.py Increase min wait time in wait_while_speaking() 2017-11-22 13:21:23 -06:00
setup_base.py Change to Apache 2.0 license from GPLv3.0 2017-10-04 01:28:44 -05:00
signal.py Refactor configuration handling 2017-10-26 19:02:32 -04:00