MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS-TTS / flush

Method flush

moss_tts_realtime/app.py:231–234  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

229 break
230
231 def flush(self) -> Iterator[np.ndarray]:
232 final_chunk = self.decoder.flush()
233 if final_chunk is not None and final_chunk.numel() > 0:
234 yield final_chunk.detach().cpu().numpy().reshape(-1)
235
236
237class StreamAudioEmitter:

Callers 4

flush_decoderFunction · 0.45
run_streamMethod · 0.45
_runMethod · 0.45
flush_decoderFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected