Ideally I would like to use 10.8's/Mountain Lion's dictation feature from Python, without a GUI. As far as I can tell dictation is currently only supported by using the UITextInput protocol, which implies a GUI (correct?).
The easiest way to install this is using pip install SpeechRecognition. Otherwise, download the source distribution from PyPI, and extract the archive. In the folder, run python setup.py install.
Turn on keyboard dictation On your Mac, choose Apple menu > System Preferences, click Keyboard , then click Dictation. Click On. If a prompt appears, click Enable Dictation.
To enter text, tap the microphone button on your keyboard, then start speaking. As you speak, the text appears on the screen. To finish, stop speaking, then tap the keyboard button . If dictation isn't sure what word it heard, you'll see a blue line under the transcribed word so you can check it for accuracy.
With keyboard dictation on iPhone, you can dictate text anywhere you can type it. On supported models, general text dictation (for example, composing messages and notes) can be processed on your device in many languages, and no internet connection is required.
You can create a dummy text field and programmatically start dictating by emulating the keypress (tried out successfully here)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With