+ 1
Pyttsx phyton audio errors ouccuring
Hello my code is import pyttsx3 from espeakng import ESpeakNG engine = pyttsx3.__init__() engine.say("I will speak this text") engine.runAndWait() When I execute this code it shows Traceback (most recent call last): File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 31, in <module> start(fakepyfile,mainpyfile) File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start exec(open(mainpyfile).read(), __main__.__dict__) File "<string>", line 3, in <module> TypeError: module() missing required argument 'name' (pos 1)
3 Answers
+ 3
You should use 'init()' instead of '__init__'
Im not sure why you need the 2nd line in your code!
https://code.sololearn.com/cB7tY6OD0G12/?ref=app
+ 1
Please Include the code in description so that people can help u fix the bug easier
+ 1
ă AVD-01 ă I have posted my code in description so pls tell me the bug what I have done