Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Can anyone tell me how to fix this error nomodulenaned pyttsx3.drivers.sapi full error here down

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’)

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You have a typo when initializing your Assistant

Assistant = pyttsx3.init('sapi5')
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading