(language: str, index: int)
| 78 | |
| 79 | |
| 80 | def _resolve_reference_audio_path(language: str, index: int) -> Path | None: |
| 81 | stem_candidates = [f"reference_{language}_{index}"] |
| 82 | for stem in stem_candidates: |
| 83 | for ext in (".wav", ".mp3"): |
| 84 | audio_path = REFERENCE_AUDIO_DIR / f"{stem}{ext}" |
| 85 | if audio_path.exists(): |
| 86 | return audio_path |
| 87 | return None |
| 88 | |
| 89 | |
| 90 | def build_example_rows() -> list[tuple[str, str, str]]: |
no outgoing calls
no test coverage detected