Remove filesystem signal for stopping speech
The filesystem signal has not been used for quite some time and should
not be used.
#
import time
-from mycroft.util.signal import check_for_signal, create_signal
+from mycroft.util.signal import check_for_signal
def is_speaking():
@@ -42,12 +42,8 @@ def stop_speaking():
# TODO: Less hacky approach to this once Audio Manager is implemented
# Skills should only be able to stop speech they've initiated
from mycroft.messagebus.send import send
- create_signal('stoppingTTS')
send('mycroft.audio.speech.stop')
# Block until stopped
while check_for_signal("isSpeaking", -1):
time.sleep(0.25)
-
- # This consumes the signal
- check_for_signal('stoppingTTS')
