fix: Fix flake8 errors based on the flake8 command with a narrower definition of errors

This commit is contained in:
Drikus Roor
2023-04-12 22:12:25 +02:00
parent 8d0d4135ea
commit 1f837968ff
12 changed files with 9 additions and 15 deletions

View File

@@ -61,7 +61,7 @@ def gtts_speech(text):
def macos_tts_speech(text, voice_index=0):
if voice_index == 0:
os.system(f'say "{text}"')
else:
else:
if voice_index == 1:
os.system(f'say -v "Ava (Premium)" "{text}"')
else:
@@ -79,7 +79,7 @@ def say_text(text, voice_index=0):
success = eleven_labs_speech(text, voice_index)
if not success:
gtts_speech(text)
queue_semaphore.release()
queue_semaphore.acquire(True)