Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Speech to Text
-
Hello everybody,
I'm wondering if there is an option how I can trigger speech recognition via Python. The other way round (text to speech) seems to be pretty simple...
BR!
-
I'm not sure iOS allows that kind of thing. There is of course Siri, and you have the text dictation button on the keyboard, but other than that I don't think apps have access to the built-in speech recognition services.
-
@drscheme - Speech to text is built into every textbox when you use the popup keyboard. All you need to use it from Pythonista is build a ui with a textbox. Some apps seem to be able to avoid the popup keyboard and just place the microphone icon right in the textbox itself. That might be a nice feature to add to the ui module if it is possible. It might already be there for all I know :-)
-
Some apps seem to be able to avoid the popup keyboard and just place the microphone icon right in the textbox itself. That might be a nice feature to add to the ui module if it is possible. It might already be there for all I know :-)
That's not possible with standard iOS SDK methods. When you see something like that (e.g. in the Google app), these companies have their own infrastructure for doing speech recognition (often cloud-based).
-
Thanks for your replies so far.
An other option would be to record sound and send the file to a server and let this server do the s2t conversion. When I remember correctly, there are some Linux tools available.... But let me guess: we don't have access to the microphone as well, ... :)
-
You're right, this isn't possible right now (that might change though).