 let session = AVAudioSession.sharedInstance()
 do {
     try session.setCategory(AVAudioSessionCategoryPlayback)
-    try session.overrideOutputAudioPort(.Speaker)
+    try session.overrideOutputAudioPort(.speaker)
     try session.setActive(true)
 } catch {
     fatalError("cannot create/set session \(error)")


player.play()




XCPlaygroundPage.currentPage.needsIndefiniteExecution = true




//player.scheduleFile(audioFile!, atTime: nil, completionHandler: nil)
player.scheduleFile(audioFile!, at: nil) {
    print("done")
    player.rate = 0.5
    player.play()
