dictation

OS X Yosemite (10.10) API for continuous speech recognition

*爱你&永不变心* 提交于 2019-12-23 10:04:05
问题 OSX has now had continuous speech recognition built in for several versions. It is remarkably good now. Does OSX 10.10 have an API for this continuous speech recognition engine? Googling tells me that circa 2009 there was only NSSpeechRecogniser (MS SAPI sdk equivalent on OSX) Can anyone confirm whether this is still the case? I'm asking because I am looking at building my own integrated UI, which would be a mix of Leap controller and speech input. If only I could use OSX's engine, this would

How can I convert a series of words into camel case in AppleScript?

╄→尐↘猪︶ㄣ 提交于 2019-12-23 01:01:07
问题 I'm trying to modify Dragon Dictate, which can execute AppleScript with a series of words that have been spoken. I need to find out how I can take a string that contains these words and convert it to camel case. on srhandler(vars) set dictatedText to varDiddly of vars say dictatedText end srhandler So if I set up a macro to execute the above script, called camel, and I say "camel string with string", dictatedText would be set to "string with string". It's a cool feature of DD. However I don't

Using Mac’s Dictation Inside Python

大兔子大兔子 提交于 2019-12-21 18:35:50
问题 Does anyone have any ideas on how to use the Mac’s built-in dictation tool to create strings to be used by Python? To launch a dictation, you have to double-press the Fn key inside any text editor. If this is the case, is there a way to combine the keystroke command with the input command? Something like: Step 1: Simulate a keystroke to double-press the Fn key, launching the Dictation tool, and then Step 2. Creating a variable by using the speech-to-text content as part of the input function,

Using Mac’s Dictation Inside Python

无人久伴 提交于 2019-12-21 18:35:32
问题 Does anyone have any ideas on how to use the Mac’s built-in dictation tool to create strings to be used by Python? To launch a dictation, you have to double-press the Fn key inside any text editor. If this is the case, is there a way to combine the keystroke command with the input command? Something like: Step 1: Simulate a keystroke to double-press the Fn key, launching the Dictation tool, and then Step 2. Creating a variable by using the speech-to-text content as part of the input function,

UITextField begin dictation

霸气de小男生 提交于 2019-12-18 05:41:54
问题 I'd like to programmatically put my UITextField input into dictation mode, without requiring the user to bring up and select dictation from the keyboard. Searched the API documentation but can find no solution. Any ideas? 回答1: This is currently not possible on iOS. The only place where it is kind of possible is in an app using WatchKit. In WKInterfaceController you can actually use presentTextInputControllerWithSuggestions with nil as parameter which starts dictation input immediately. 回答2:

Using Dictation - iOS 6 - DidStart?

丶灬走出姿态 提交于 2019-12-05 00:12:20
问题 How to respond to starting dictation? Known ways of responding to dictation: dictationRecordingDidEnd - respond to the completion of the recognition of a dictated phrase. dictationRecognitionFailed - respond to failed dictation recognition. Reference: UITextInput Protocol Reference Starting in iOS 5.1, when the user chooses dictation input on a supported device, the system automatically inserts recognized phrases into the current text view. Methods in the UITextInput protocol allow your app

Using Mac’s Dictation Inside Python

戏子无情 提交于 2019-12-04 10:58:22
Does anyone have any ideas on how to use the Mac’s built-in dictation tool to create strings to be used by Python? To launch a dictation, you have to double-press the Fn key inside any text editor. If this is the case, is there a way to combine the keystroke command with the input command? Something like: Step 1: Simulate a keystroke to double-press the Fn key, launching the Dictation tool, and then Step 2. Creating a variable by using the speech-to-text content as part of the input function, i.e. text_string = input(“Start dictation: “) In this thread ( Can I use OS X 10.8's speech

Using Dictation - iOS 6 - DidStart?

与世无争的帅哥 提交于 2019-12-03 14:26:49
How to respond to starting dictation? Known ways of responding to dictation: dictationRecordingDidEnd - respond to the completion of the recognition of a dictated phrase. dictationRecognitionFailed - respond to failed dictation recognition. Reference: UITextInput Protocol Reference Starting in iOS 5.1, when the user chooses dictation input on a supported device, the system automatically inserts recognized phrases into the current text view. Methods in the UITextInput protocol allow your app to respond to the completion of dictation, as described in “Using Dictation.” You can use an object of