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

Function _parse_example_id

clis/moss_voice_generator_app.py:29–33  ·  view source on GitHub ↗
(example_id: str)

Source from the content-addressed store, hash-verified

27
28
29def _parse_example_id(example_id: str) -> tuple[str, int] | None:
30 matched = re.fullmatch(r"(zh|en)/(\d+)", (example_id or "").strip())
31 if matched is None:
32 return None
33 return matched.group(1), int(matched.group(2))
34
35
36def build_example_rows() -> list[tuple[str, str, str]]:

Callers 1

build_example_rowsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected