Created
May 21, 2015 03:21
-
-
Save jacobmoncur/aa4e10fd114d46929687 to your computer and use it in GitHub Desktop.
How to say GIF (according to siri)
This file contains 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
let string = "This is how you say GIF." | |
let utterance = AVSpeechUtterance(string: string) | |
utterance.voice = AVSpeechSynthesisVoice(language: "en-US") | |
utterance.rate = 0.15 | |
utterance.pitchMultiplier = 1.2 | |
utterance.preUtteranceDelay = 0.2 | |
utterance.postUtteranceDelay = 0.2 | |
let synthesizer = AVSpeechSynthesizer() | |
synthesizer.speakUtterance(utterance) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment