Can't install pyttsx3 module
I was remove speech module in my iOS. How to recover???
sulcud last edited by sulcud
I think that erasing a Pythonista build-in module is not possible, remember that python has a weird importing system so if you have a script/folder called speech in the same folder of your main script maybe you are importing it instead of the build in one. (python import order is: current dir, ... , site-packages, build-in) but If that is not the case, I think a fresh install of Pythonista could work
@sulcud fresh install doesn't helped. I was delete speech module before over stash(((. Now i can't recover.
JonB last edited by JonB
Make sure you don't have a speech.py in site-packages, or in the same folder as the main script you are running. Also make sure you don't have any folders called speech inside site-packages, that includes an init file.
As a check, in the console, try
If that fails, look at the traceback to show you what failed, which should include a path to the module it was trying to import.
You can also try
import speech import inspect print(inspect.getfile(speech))
Either you will get an error module 'speech' (built-in)> is a built-in module
Either you will get its path if another speech module is imported
get an error module 'speech' (built-in)> is a built-in module
@lyubomyr83 thus, you did not remove it...
JonB last edited by JonB
@lyubomyr83 why do you think you deleted the speech module? What error do you get when you try to use it?
Or, are you talking the SpeechModule script that was shared?
In that case, just copy the code again, paste into the editor, and name it something other than speech...
lyubomyr83 last edited by lyubomyr83
@JonB i have two same 3rd generation ipads, run the same program and have voice in one of them and not in another one. Yes, voice is on ))) in settings. And i have not errors.
@lyubomyr83 could you try the iOS Shortuts app with "speak text" command, only to check if the problem could come from the hardware and not from Pythonista
@cvp in iOS settings/speech i hear sound when i change speed (Turtle)
cvp last edited by cvp
@lyubomyr83 ok, but did you try the shortcut ?
And is your script as short as
import speech speech.say("привет друг", "ru-RU") # hello friend
JonB last edited by
@lyubomyr83 check that the mute alarms is not set in the pull down settings. If you have a physical mute switch, make sure it is not set to mute. If you have a physical switch that you toggled to lock rotation, then make sure the swipe settings doesn't show mute.
Even when volume is turned up, pythonista honors the mute setting for some sounds.