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

Method __init__

text_normalization_pipeline.py:30–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28
29class WeTextProcessingManager:
30 def __init__(self) -> None:
31 self._lock = threading.Lock()
32 self._normalize_lock = threading.Lock()
33 self._thread: threading.Thread | None = None
34 self._started = False
35 self._state = "pending"
36 self._message = "Waiting for WeTextProcessing preload."
37 self._error: str | None = None
38 self._available = True
39 self._normalizers: dict[str, object] | None = None
40
41 def snapshot(self) -> TextNormalizationSnapshot:
42 with self._lock:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected