Skip to content

Instantly share code, notes, and snippets.

@jacobmoncur
Created May 21, 2015 03:21
Show Gist options
  • Save jacobmoncur/aa4e10fd114d46929687 to your computer and use it in GitHub Desktop.
Save jacobmoncur/aa4e10fd114d46929687 to your computer and use it in GitHub Desktop.
How to say GIF (according to siri)
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