Can I use OS X 10.8's speech recognition/dictation without a GUI?

南笙酒味 提交于 2019-11-29 14:08:14

问题


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)



来源:https://stackoverflow.com/questions/11851713/can-i-use-os-x-10-8s-speech-recognition-dictation-without-a-gui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!