     var audioRecorder: AVAudioRecorder?
     // the URL of the file used to record to
     var recordingURL: URL!
+    // an audio player for playback
+    var audioPlayer: AVAudioPlayer?
     
     
     // MARK: - View Lifecycle

    }
    
    
    // MARK: - Memory URL Helper Methods
    
    func imageURL(for memory: URL) -> URL {

import AVFoundation // Microphone Access
import Photos       // Photo Library Access
import Speech       // Speech Transcription


class MemoriesViewController: UICollectionViewController {
    
