Skip to content

Commit

Permalink
changed to female voice
Browse files Browse the repository at this point in the history
  • Loading branch information
lokendarjangid committed Apr 26, 2024
1 parent 7509424 commit 4ece236
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions voice_work.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self) -> None:
raise Exception("Unsupported platform")
voices = self.engine.getProperty('voices')
# print(voices[3].id)
self.engine.setProperty('voice', voices[0].id)
self.engine.setProperty('voice', voices[1].id)

def speak(self,audio):
self.engine.say(audio)
Expand All @@ -34,7 +34,7 @@ def wishMe(self):
else:
self.speak("Good Evening!")

self.speak("I am Loki Sir. Please tell me how may I help you")
self.speak("I am shawna Sir. Please tell me how may I help you")

def takeCommand(self):
# It takes microphone input from the user and returns string output
Expand Down

0 comments on commit 4ece236

Please sign in to comment.