Skip to content

AudioInfo

Immutable class.

Data class with audio info recorded so far.

Properties

public let audioDuration: Int64

Audio duration in milliseconds.

public let voiceDuration: Int64

Voice duration in milliseconds.

public let snr: Double

Signal to noise ratio.

public let isEnoughVoice: Bool

True if there is enough voice, false otherwise.

public let isEnoughSNR: Bool

True if there is enough SNR, false otherwise.

public let isEnoughQuality: Bool

True if there is enough quality, false otherwise.

public var description: String { get }

Description of the parameters.

Public Methods

init(
 _ audioDuration: Int64,
 _ voiceDuration: Int64,
 _ snr: Double,
 _ isEnoughVoice: Bool,
 _ isEnoughSNR: Bool,
 _ isEnoughQuality: Bool
)

Constructor of the class.

  • Parameters:

    • audioDuration: audio duration in milliseconds.
    • voiceDuration: voice duration in milliseconds.
    • snr: signal to noise ratio.
    • isEnoughVoice: true if there is enough voice, false otherwise.
    • isEnoughSNR: true if there is enough SNR, false otherwise.
    • isEnoughQuality: true if there is enough quality, false otherwise.