Class AudioUtil


  • public final class AudioUtil
    extends Object
    Utils functions for audio.
    Since:
    12326 (move to new package), 1462
    • Method Detail

      • getCalibratedDuration

        public static double getCalibratedDuration​(File wavFile)
        Returns calibrated length of recording in seconds.
        Parameters:
        wavFile - the recording file (WAV format)
        Returns:
        the calibrated length of recording in seconds.
      • audioMalfunction

        public static void audioMalfunction​(Exception ex)
        Shows a popup audio error message for the given exception.
        Parameters:
        ex - The exception used as error reason. Cannot be null.
        Since:
        12328