feat: finitions

This commit is contained in:
DinoMalin 2025-03-07 16:13:06 +01:00
parent fa7867cb1d
commit 7fe7ae5b49
2 changed files with 8 additions and 4 deletions

View File

@ -1 +1,3 @@
OPENAI_API_KEY=...
SPEECH_KEY=...
REGION=...

10
ai.py
View File

@ -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")