Add a prompt when script first started
This commit is contained in:
parent
fcff874f53
commit
a9f82824cf
1 changed files with 3 additions and 2 deletions
|
|
@ -228,12 +228,13 @@ def main():
|
|||
bear = Bear(speech_config)
|
||||
|
||||
transcription = [""]
|
||||
|
||||
bear.speak(
|
||||
"Hello there! Just give my left foot a squeeze if you would like to get my attention."
|
||||
)
|
||||
while True:
|
||||
try:
|
||||
# If button is pressed, start listening
|
||||
if bear.foot_pressed():
|
||||
print("How may I help you?")
|
||||
bear.speak("How may I help you?")
|
||||
listener.listen()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue