Last active
December 23, 2015 21:49
-
-
Save berzniz/6699348 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *command = @"ok glass, take a picture"; | |
AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc] init]; | |
AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:command]; | |
[synthesizer speakUtterance:utterance]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment