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

Function text_normalization_status

app.py:2465–2485  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2463
2464 @app.get("/api/text-normalization-status")
2465 async def text_normalization_status():
2466 snapshot = text_normalizer_manager.snapshot() if text_normalizer_manager is not None else None
2467 if snapshot is None:
2468 return {
2469 "state": "disabled",
2470 "message": "WeTextProcessing disabled.",
2471 "error": None,
2472 "ready": False,
2473 "failed": False,
2474 "available": False,
2475 "status_text": "WeTextProcessing disabled.",
2476 }
2477 return {
2478 "state": snapshot.state,
2479 "message": snapshot.message,
2480 "error": snapshot.error,
2481 "ready": snapshot.ready,
2482 "failed": snapshot.failed,
2483 "available": snapshot.available,
2484 "status_text": _text_normalization_status_text(snapshot),
2485 }
2486
2487 @app.get("/api/demo-prompt-audio/{demo_id}")
2488 async def demo_prompt_audio(demo_id: str):

Callers

nothing calls this directly

Calls 2

snapshotMethod · 0.45

Tested by

no test coverage detected