J
J
JohnZoidberg2015-04-16 18:43:17
Objective-C
JohnZoidberg, 2015-04-16 18:43:17

How to use Apple's speech recognition?

I found an interesting option for using voice control for my application:
www.engadget.com/2011/11/23/in-which-i-use-siri-to...
As I understand it, the author hides the standard keyboard, activates its voice input and parses the entered text.
How can I enable voice input programmatically without touching the button? How to mask the keyboard?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JohnZoidberg, 2015-04-17
@JohnZoidberg

In general, if someone wants to stir something up - see here:
https://github.com/jojonki/iOS-googleTTS/tree/mast...

A
An, 2015-04-16
@Flanker_4

You are trying to do everything somehow wrong. This application will not be allowed into the store anyway, why then limit yourself to public Api. Look in the private api for the opportunity to interact with Siri (I'm sure they exist)
Here, for example, activating Siri

- (BOOL)activateVirtualAssistant{   
   if ([%c(SBAssistantController) preferenceEnabled]) { 
      if ([%c(SBAssistantController) shouldEnterAssistant]) {
          SBAssistantController *assistant = (SBAssistantController *)[%c(SBAssistantController) sharedInstance];           
          if (assistant.assistantVisible)   
             [assistant dismissAssistant];          
          else {
             [(SpringBoard *)UIApp activateAssistantWithOptions:nil withCompletion:nil];
             return YES;
          }     
       }
   }    
   return NO;
}

taken here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question