SO here I imported pyttsx3 and wanted my ai to speak but it gave me a error full error here https://drive.google.com/file/d/12fa4KdSQ6JiEYjJHljc3JuLiFW-eYtKD/view?usp=sharing
import pyttsx3
Assistant = pyttsx3.init('sapi.5')
voices = Assistant.getProperty('voices')
print(voices)
Assistant.setProperty('voices',voices(1).id)
def Speak(audio):
print(" ")
Assistant.say(audio)
print(" ")
Assistant.runAndWait()
Speak('Hello sir, I am Y.P.A')
You have a typo when initializing your Assistant
Assistant = pyttsx3.init('sapi5')