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

1st May 2020, 11:29 PM
Tirumal T N
Tirumal T N - avatar
3 Respuestas
+ 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
3rd May 2020, 1:33 AM
A C K
A C K - avatar
+ 1
Please Include the code in description so that people can help u fix the bug easier
2nd May 2020, 5:14 PM
A C K
A C K - avatar
+ 1
『 AVD-01 』 I have posted my code in description so pls tell me the bug what I have done
2nd May 2020, 10:20 PM
Tirumal T N
Tirumal T N - avatar