Skip to content

Instantly share code, notes, and snippets.

View marie-codes's full-sized avatar

Marie J Park marie-codes

View GitHub Profile
import UIKit
import AVFoundation
class ViewController: UIViewController
{
@IBAction weak var textView: UITextView!
let synth = AVSpeechSynthesizer()
var myUtterance = AVSpeechUtterance(string: "")
@IBAction func textToSpeech(sender: UIButton)
{
myUtterance = AVSpeechUtterance(string: textView.text)
myUtterance.rate = 0.3
synth.speakUtterance(myUtterance)
}
@marie-codes
marie-codes / AVSpeechSynthesizer
Last active February 2, 2017 08:46
text to speech
let synth = AVSpeechSynthesizer()
var myUtterance = AVSpeechUtterance(string: "")
@marie-codes
marie-codes / gist:ac5f904f17769f55436d01cc0295d4cf
Created August 24, 2016 16:26 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt