Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LNLenost authored Apr 21, 2024
1 parent 56cc3f7 commit 77e7e12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def recognize_speech():

def main():
# Parola da rilevare per aprire il file
target_word = "open your mind"
target_word = "xxx"

while True:
# Ascolta il microfono e riconosci il testo
Expand All @@ -32,7 +32,7 @@ def main():
# Controlla se la parola target è presente nel testo riconosciuto
if target_word in spoken_text:
# Apri il file desiderato
file_path = "Dash.mp3" # Inserisci il percorso del tuo file
file_path = "xxx" # Inserisci il percorso del tuo file
try:
os.startfile(file_path) # Apre il file con l'applicazione predefinita
print(f"File opened: {file_path}")
Expand Down

0 comments on commit 77e7e12

Please sign in to comment.