[Bugfix] Validate Breeze PCM speech content and calibrate HNR guard (#8044)
Signed-off-by: Yueqian Lin <linyueqian@outlook.com>
This commit is contained in:
1 parent
dbd6a35dd2
commit
1d77e96d4d
4 files changed
+216
-12
No files matched your search
@@ -52,14 +52,16 @@ def test_english_streaming(omni_server, online_client, run_level) -> None:
|
||||
"input": "Hello, this is a demonstration of natural speech synthesis.",
|
||||
"instructions": "A warm, clear female voice speaking English at a moderate pace.",
|
||||
"transcript_language": "en",
|
||||
"transcript_pcm_sample_rate": 24000,
|
||||
"transcript_escalation_model": "large-v3",
|
||||
"response_format": "pcm",
|
||||
"sample_rate": 24000,
|
||||
"min_audio_bytes": 24000,
|
||||
"stream": True,
|
||||
"stream_format": "audio",
|
||||
# The reference eager runtime scores 0.56 dB on this same prompt
|
||||
# (seed 42, CFG=1); the shared 1 dB floor rejects it as well.
|
||||
"min_hnr_db": 0.0,
|
||||
# This fixed prompt scores -0.11 dB on L4 and 0.56 dB on H100.
|
||||
# Keep a small HNR margin and also verify the spoken words above.
|
||||
"min_hnr_db": -1.0,
|
||||
"seed": 42,
|
||||
"max_new_tokens": 8 if run_level == "core_model" else 250,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user