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

Function resolve_repo_path

tests/warmbench.py:953–959  ·  view source on GitHub ↗
(path_text: str | None)

Source from the content-addressed store, hash-verified

951 raise RuntimeError("MioCodec warmbench uses JSON case requests; --text is not supported")
952 case_name = args.case_names[0] if args.case_names else str(config.get("default_case_name", "default"))
953 catalog_path = REPO_ROOT / str(config["case_catalog"])
954 catalog = json.loads(catalog_path.read_text(encoding="utf-8"))
955 case = catalog.get(case_name)
956 if not isinstance(case, dict):
957 available = ", ".join(sorted(catalog))
958 raise RuntimeError(f"unknown MioCodec case name {case_name!r}; available: {available}")
959 warmup = case.get("warmup")
960 requests = case.get("requests")
961 if not isinstance(warmup, dict):
962 raise RuntimeError(f"MioCodec case {case_name!r} is missing warmup request")

Callers 5

compare_separation_stepFunction · 0.70
validate_tts_resultFunction · 0.70
first_sequence_audioFunction · 0.70
run_scenarioFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected