Is it possible to use voice inputs for Python scripts on iOS?
Is it possible to use voice inputs for Python scripts on iOS? If not yet possible using Pythonista, is it maybe possible to add in the future, or do Apple's restrictions somehow make this impossible?
Siri already works with Pythonista - just apparently not in the way that you're asking for.
For Siri-capable devices, any UITextField or UITextArea can use Siri as a keyboard alternative for data entry. An example of this in Pytonista is text entry portion at the bottom of the 'console' view. On my iPhone 4S, the Siri microphone is present and I can do text entry with my voice on the console in Pythonista.
If you're asking for 100% touch-free interaction (Siri listens for something, you speak, and it automatically does something based on that), that's not currently allowed in the iOS developer environment.
Siri is only allowed in non-Apple apps, currently, as an alternative to typing - and it has to be triggered by the user (by clicking on the microphone icon on the keyboard).
There is no 'Siri API' for developers to explicitly hook it into their apps.
Any pure speech, hands-free apps you're seeing currently in the app store are using a third-party API for doing voice recognition (several of which are backed by Nuance - the people who originally made the tech Siri is based on). An example of that is vokul:
Thanks for an enlightening answer.
question: UITextField and UITextarea, Ho can I use those in my Python code in Pythonista? re they available? Excuse emu ignorance, but how do I access these functions in order to make a User Interface for user input of text? can I call thse controls using Python code in Pythonista?
You can't create them in Pythonista (yet).
The best you can do is something like:
<pre>response = raw_input()</pre>
This should make the console appear and wait for the user to type / say something using Siri (if they're on a Siri-capable device an they press the microphone button).