MCPcopy Create free account
hub / github.com/modelscope/FunASR / normalize_extensions

Function normalize_extensions

examples/migration/benchmark_funasr.py:79–80  ·  view source on GitHub ↗
(values: Iterable[str])

Source from the content-addressed store, hash-verified

77
78
79def normalize_extensions(values: Iterable[str]) -> List[str]:
80 return sorted({value.lower() if value.startswith(".") else f".{value.lower()}" for value in values})
81
82
83def iter_audio_files(path: Path, extensions: List[str], recursive: bool) -> List[Path]:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…