     private var recordBufferDuration: Double = 16_384 / AKSettings.sampleRate
 
     /// return the AKAudioFile for reading
-    open var audioFile: AKAudioFile? {
+    @objc open var audioFile: AKAudioFile? {
         do {
             return try AKAudioFile(forReading: internalAudioFile.url)
 

    @objc public private(set) dynamic var isRecording = false

    /// An optional duration for the recording to auto-stop when reached
    open var durationToRecord: Double = 0

    /// Duration of recording
    open var recordedDuration: Double {
        return internalAudioFile.duration
    }


    }

    /// Reset the AKAudioFile to clear previous recordings
    @objc open func reset() throws {
        // Stop recording
        if isRecording == true {
            stop()
