use fun-asr-nano model instead

This commit is contained in:
2026-06-02 20:24:31 -07:00
parent 3e50191530
commit 40a4274fd3
6 changed files with 38 additions and 11 deletions
+16
View File
@@ -0,0 +1,16 @@
from evanescere.services.asr import normalize_segments
def test_normalize_segments_uses_known_audio_bounds_when_timestamps_are_missing():
assert normalize_segments(
{"text": "你好", "segments": []}, fallback_start_sec=0, fallback_end_sec=15
) == [
{
"start_sec": 0,
"end_sec": 15,
"text": "你好",
"speaker": None,
"confidence": None,
"metadata": {"text": "你好", "segments": []},
}
]