def audio(self,stripzeros='none',mono=False) : """Returns audio for file Param stripzeros can be 'leading','trailing','both','none' Param mono returns mono if True, otherwise native signal Returns triple [x,fs,svals] x is signal fs is sampling rate svals is a tuple containing [zeros stripped from front, zeros stripped from end] of file see gordon.io.audio.AudioFile for more details.""" audioFile = AudioFile(self.fn_audio,stripzeros=stripzeros,mono=mono) x, fs, sval = audioFile.read() return x, fs, sval
def audio(self, stripzeros='none', mono=False): """Returns audio for file Param stripzeros can be 'leading','trailing','both','none' Param mono returns mono if True, otherwise native signal Returns triple [x,fs,svals] x is signal fs is sampling rate svals is a tuple containing [zeros stripped from front, zeros stripped from end] of file see gordon.io.audio.AudioFile for more details.""" audioFile = AudioFile(self.fn_audio, stripzeros=stripzeros, mono=mono) x, fs, sval = audioFile.read() return x, fs, sval