MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / normalize_text

Function normalize_text

tests/warmbench.py:904–912  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

902 request["seed"] = args.seed
903 assert_fields = case.get("assert_optional_request_fields", [])
904 if assert_fields:
905 if not isinstance(assert_fields, list) or not all(isinstance(field, str) for field in assert_fields):
906 raise RuntimeError(f"ACE-Step case {case_name!r} has invalid assert_optional_request_fields")
907 for request_index, request in enumerate(selected):
908 for field in assert_fields:
909 if field not in request:
910 raise RuntimeError(
911 f"ACE-Step case {case_name!r} request {request_index} missing asserted optional field {field!r}"
912 )
913 value = request[field]
914 if value is None or value == "" or value == []:
915 raise RuntimeError(

Callers 5

normalize_whisper_textFunction · 0.70
normalize_whisper_wordFunction · 0.70
compare_parakeet_stepFunction · 0.70
compare_qwen3_asr_stepFunction · 0.70
normalize_alignment_wordFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected