 import AVFoundation
 
-class Recording {
+public class Recording {
     var recorder: AVAudioRecorder!
     var player: AVAudioPlayer!
     var session: AVAudioSession!

        recorder.record()
    }
    
    func stop()
    {
        recorder.stop()
    }
    
    func play()
    {
        self.session.setCategory(AVAudioSessionCategoryPlayback, error: nil)
        

        AVSampleRateKey: 44100.0
    ]
    
    public init(to: NSString, on: AVAudioRecorderDelegate)
    {
        self.delegate = on
        self.session = AVAudioSession.sharedInstance()
        self.url = NSURL(fileURLWithPath: directory.stringByAppendingPathComponent(to))
    }
    
    public func record()
    {
        self.session.setCategory(AVAudioSessionCategoryRecord, error: nil)
        
