(self, x, fs)
| 185 | return x |
| 186 | |
| 187 | def _preprocess(self, x, fs): |
| 188 | if isinstance(x, np.ndarray): |
| 189 | x = vggish_input.waveform_to_examples(x, fs) |
| 190 | elif isinstance(x, str): |
| 191 | x = vggish_input.wavfile_to_examples(x) |
| 192 | else: |
| 193 | raise AttributeError |
| 194 | return x |
| 195 | |
| 196 | def _postprocess(self, x): |
| 197 | return self.pproc(x) |