(self)
| 131 | self.callbacks.on_audio_stream_start() |
| 132 | |
| 133 | def finish(self) -> None: |
| 134 | if self._finished: |
| 135 | return |
| 136 | self._finished = True |
| 137 | if self._started and self.callbacks.on_audio_stream_stop: |
| 138 | self.callbacks.on_audio_stream_stop() |
| 139 | |
| 140 | def decode_frames(self, audio_frames: list[torch.Tensor]) -> Iterator[np.ndarray]: |
| 141 | for frame in audio_frames: |