Skip to content

Commit

Permalink
tidy up lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DGrothe-PhD committed Jul 4, 2024
1 parent 7fa92c8 commit 1553474
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion jarvis.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


import speech_recognition as sr
import pyttsx3
import pywhatkit

import wikipedia
Expand Down
9 changes: 5 additions & 4 deletions speakerSetup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
import platform
import traceback
#import traceback
#import sys

import pyttsx3

Expand All @@ -24,7 +24,7 @@ class SpeakerStatus:
debugSwitchOffSpeaker = False
engine = None
speak = None

#
@staticmethod
def is_windows_platform() -> bool:
"""True if system is Windows"""
Expand Down Expand Up @@ -63,7 +63,8 @@ def initializeSpeaker() -> bool:
"""setup of speaking functionality"""
try:
# second member will be evaluated only if first will fail
return SpeakerStatus.initializePyTTSSpeaker() or SpeakerStatus.initializeSpVoiceSpeaker()
return SpeakerStatus.initializePyTTSSpeaker() \
or SpeakerStatus.initializeSpVoiceSpeaker()
except SpeakerInitializeError:
print("No speaker has been configured.")
SpeakerStatus.debugSwitchOffSpeaker = True
Expand Down

0 comments on commit 1553474

Please sign in to comment.