Can I use OS X 10.8's speech recognition/dicta

2019-02-06 23:22发布

问题:

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?).

回答1:

You can create a dummy text field and programmatically start dictating by emulating the keypress (tried out successfully here)