dictation

Using Mac OSX Dictation with Speech API

别等时光非礼了梦想. 提交于 2019-12-03 13:04:16
问题 In OSX Mavericks, speech dictation is now included, and is very useful. I am trying to use the dictation capability to create my own digital life assistant, but I can't find how to use the recognition functionality to get the speech in an application rather than a text box. I have looked into NSSpeechRecognizer, but that seems to be geared toward programming speakable commands with a pre-defined grammar rather than dictation. It doesn't matter what programming language I use, but Python or

Using Mac OSX Dictation with Speech API

懵懂的女人 提交于 2019-12-03 03:22:35
In OSX Mavericks, speech dictation is now included, and is very useful. I am trying to use the dictation capability to create my own digital life assistant, but I can't find how to use the recognition functionality to get the speech in an application rather than a text box. I have looked into NSSpeechRecognizer, but that seems to be geared toward programming speakable commands with a pre-defined grammar rather than dictation. It doesn't matter what programming language I use, but Python or Java would be nice... Thanks for your help! You can use SFSpeechRecognizer ( mirror ) (requires macOS 10

WatchKit Option to ONLY Dictate?

假装没事ソ 提交于 2019-12-02 09:31:43
问题 I use: NSArray* initialPhrases = @[@"Let's do lunch.", @"Can we meet tomorrow?", @"When are you free?"]; [self presentTextInputControllerWithSuggestions:initialPhrases allowedInputMode:WKTextInputModePlain completion:^(NSArray *results) { if (results && results.count > 0) { id aResult = [results objectAtIndex:0]; // Use the string or image. } else { // Nothing was selected. } }]; This is the example given for text input by Apple. However, in my app, I want the user to ONLY have the option to

WatchKit Option to ONLY Dictate?

[亡魂溺海] 提交于 2019-12-02 04:15:13
I use: NSArray* initialPhrases = @[@"Let's do lunch.", @"Can we meet tomorrow?", @"When are you free?"]; [self presentTextInputControllerWithSuggestions:initialPhrases allowedInputMode:WKTextInputModePlain completion:^(NSArray *results) { if (results && results.count > 0) { id aResult = [results objectAtIndex:0]; // Use the string or image. } else { // Nothing was selected. } }]; This is the example given for text input by Apple. However, in my app, I want the user to ONLY have the option to dictate text. If I set the array to nil, the dictate button is not there, but if I leave the array

UITextField begin dictation

筅森魡賤 提交于 2019-11-29 09:20:23
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? 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. You have to implement SFSpeechRecognizer, use Accelerate framework to get mic sound level floats and make an