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

Method __enter__

moss_tts_local_v1.5/streaming.py:585–588  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

583 return torch.device("cpu")
584
585 def __enter__(self) -> "StatefulCodecDecoder":
586 self._ctx = self.audio_tokenizer.streaming(batch_size=1)
587 self._ctx.__enter__()
588 return self
589
590 def __exit__(self, exc_type, exc, tb) -> None:
591 if self._ctx is not None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected