Stream frame. It splits the continuous audio into frame-level audio chunks in the streaming *simulation*. It is noted that this function takes the entire long audio as input for a streaming simulation. You may refer to this function to manage your streaming input
(self, audio: torch.Tensor)
| 23 | raise NotImplementedError |
| 24 | |
| 25 | def streaming_frame(self, audio: torch.Tensor): |
| 26 | """Stream frame. |
| 27 | |
| 28 | It splits the continuous audio into frame-level |
| 29 | audio chunks in the streaming *simulation*. It is noted that this |
| 30 | function takes the entire long audio as input for a streaming simulation. |
| 31 | You may refer to this function to manage your streaming input |
| 32 | buffer in a real streaming application. |
| 33 | |
| 34 | Args: |
| 35 | audio: (B, T) |
| 36 | Returns: |
| 37 | chunked: List [(B, frame_size),] |
| 38 | """ |
| 39 | raise NotImplementedError |
no outgoing calls
no test coverage detected