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

Function _safe_int

runtime/python/websocket/funasr_wss_server.py:151–155  ·  view source on GitHub ↗
(v, default)

Source from the content-addressed store, hash-verified

149
150
151def _safe_int(v, default):
152 try:
153 return int(v)
154 except Exception:
155 return default
156
157
158# ========= speaker db:加缓存,避免每段都读盘 =========

Callers 1

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…