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

Function _parse_example_id

clis/moss_tts_app.py:73–77  ·  view source on GitHub ↗
(example_id: str)

Source from the content-addressed store, hash-verified

71
72
73def _parse_example_id(example_id: str) -> tuple[str, int] | None:
74 matched = re.fullmatch(r"(zh|en)/(\d+)", (example_id or "").strip())
75 if matched is None:
76 return None
77 return matched.group(1), int(matched.group(2))
78
79
80def _resolve_reference_audio_path(language: str, index: int) -> Path | None:

Callers 1

build_example_rowsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected