Skip to content

AudioInfo

Immutable class.

Data class with audio info recorded so far.

Properties

final long audioDuration

Audio duration in milliseconds.

final long voiceDuration

Voice duration in milliseconds.

final double snr

Signal to noise ratio.

final boolean enoughVoice

True if there is enough voice, false otherwise.

final boolean enoughSNR

True if there is enough SNR, false otherwise.

final boolean enoughQuality

True if there is enough quality, false otherwise.

Public Methods

AudioInfo(long audioDuration, long voiceDuration, double snr, boolean enoughVoice, boolean enoughSNR, boolean enoughQuality)

Constructor of the class.

  • Parameters:

    • audioDuration: audio duration in milliseconds.
    • voiceDuration: voice duration in milliseconds.
    • snr: signal to noise ratio.
    • enoughVoice: true if there is enough voice, false otherwise.
    • enoughSNR: true if there is enough SNR, false otherwise.
    • enoughQuality: true if there is enough quality, false otherwise.
String toString()

Description of the parameters.