From 491b386d4e8c7915311df449144594a35b281544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Wikle=20DUBARD?= <loic97429@gmail.com> Date: Sun, 29 Sep 2019 19:37:51 +0200 Subject: [PATCH] fix --- Jarvis.py | 2 +- myimports.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Jarvis.py b/Jarvis.py index 17f8e2e..910951e 100755 --- a/Jarvis.py +++ b/Jarvis.py @@ -83,7 +83,7 @@ def parle(texte, save=True, lang='fr-CA'): try: # sound = pygame.mixer.Sound('saved_voice/{}.mp3'.format(line_no)) pygame.mixer.music.load('saved_voice/{}.mp3'.format(line_no)) - pygame.mixer.music.play(sound) + pygame.mixer.music.play() pygame.mixer.music.set_endevent() except: print("ERROR: can't play audio") diff --git a/myimports.py b/myimports.py index 989d1b6..4a0171d 100644 --- a/myimports.py +++ b/myimports.py @@ -53,7 +53,6 @@ else: pygame.init() pygame.mixer.init(frequency=25000) -pygame.mixer.pre_init(44100, -16, 2, 2048) # engine = pyttsx3.init() # voice = engine.getProperty('voices')[26] # the french voice # engine.setProperty('voice', voice.id) -- GitLab