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

Function _ensure_dir

runtime/python/websocket/funasr_wss_server.py:134–138  ·  view source on GitHub ↗
(p: str)

Source from the content-addressed store, hash-verified

132
133
134def _ensure_dir(p: str):
135 try:
136 os.makedirs(p, exist_ok=True)
137 except Exception:
138 pass
139
140
141def _pcm_duration_ms(pcm_bytes: bytes, fs: int, ch: int = 1, sampwidth: int = 2) -> int:

Callers 2

ws_serveFunction · 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…