Try to use own spec file,run command under.
You should now have
pyinstaller --onefile talk.pyEvery time you run Pyinstaller a
.spec
file is created.You should now have
talk.spec
,open file add this line:hiddenimports=["pyttsx3", "pyttsx3.drivers.sapi5"],Save and now run.
pyinstaller --clean talk.spec