AKNodeRecorder

@objc
open class AKNodeRecorder : NSObject

Simple audio recorder class

  • True if we are recording.

    Declaration

    Swift

    @objc
    public private(set) dynamic var isRecording: Bool
  • An optional duration for the recording to auto-stop when reached

    Declaration

    Swift

    open var durationToRecord: Double
  • Duration of recording

    Declaration

    Swift

    open var recordedDuration: Double { get }
  • return the AKAudioFile for reading

    Declaration

    Swift

    open var audioFile: AKAudioFile? { get }
  • Initialize the node recorder

    Recording buffer size is defaulted to be AKSettings.bufferLength You can set a different value by setting an AKSettings.recordingBufferLength

    Declaration

    Swift

    @objc
    public init(node: AKNode? = AudioKit.output,
          file: AKAudioFile? = nil) throws

    Parameters

    node

    Node to record from

    file

    Audio file to record to

  • Start recording

    Declaration

    Swift

    @objc
    open func record() throws
  • Stop recording

    Declaration

    Swift

    @objc
    open func stop()
  • Reset the AKAudioFile to clear previous recordings

    Declaration

    Swift

    open func reset() throws