def sample_rate(self) -> int:
        """
        Get the sampling rate.

        :return: The audio sampling rate.
        """
        if self._version == 2:
            sample_rate = self.model.audio_conf.sample_rate
        else:
            sample_rate = self.model.spect_cfg["sample_rate"]

        return sample_rate

        Get the sampling rate.

        :return: The audio sampling rate.
        
art/estimators/speech_recognition/pytorch_deep_speech.py