Quit command for speaker client

merge-requests/21/head
Bob Mottram 2021-03-04 18:05:46 +00:00
parent 96c8a64a91
commit d85f221c2e
1 changed files with 6 additions and 2 deletions

View File

@ -132,5 +132,9 @@ def runSpeakerClient(baseDir: str, proxyType: str, httpPrefix: str,
prevSay = speakerJson['say']
# wait for a while, or until a key is pressed
if _waitForKeypress(30, debug):
break
keyPress = _waitForKeypress(30, debug)
if keyPress:
if keyPress.startswith('/'):
keyPress = keyPress[1:]
if keyPress == 'q' or keyPress == 'quit' or keyPress == 'exit':
break