Displays a spectrogram of an audio file. Supported formats see :func:`sparkle.tools.audiotools.audioread`

        :param fname: file path of the audiofile to display
        :type fname: str
        :returns: float -- duration of audio recording (seconds)

def fromFile(self, fname):
        """Displays a spectrogram of an audio file. Supported formats see :func:`sparkle.tools.audiotools.audioread`

        :param fname: file path of the audiofile to display
        :type fname: str
        :returns: float -- duration of audio recording (seconds)
        """
        spec, f, bins, dur = audiotools.spectrogram(fname, **self.specgramArgs)
        self.updateImage(spec, bins, f)
        return dur