diff --git a/.env.example b/.env.example index f5a5479..f394492 100644 --- a/.env.example +++ b/.env.example @@ -1 +1,3 @@ OPENAI_API_KEY=... +SPEECH_KEY=... +REGION=... diff --git a/ai.py b/ai.py index 35e2c87..5f05076 100644 --- a/ai.py +++ b/ai.py @@ -112,10 +112,12 @@ def ask_ai(prompt): print(data["emotion"]) print(data["score"]) -i = 0 -while True: - ask_ai(listen_voice()) - i += 1 + +try: + while True: + ask_ai(listen_voice()) +except: + print("Program stopped.") # send_emotion("Complice")