MCPcopy Create free account
hub / github.com/espnet/espnet / streaming_frame

Method streaming_frame

espnet2/enh/encoder/abs_encoder.py:25–39  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 3

frameMethod · 0.45
conv_decoder.pyFile · 0.45
stft_decoder.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected