[Bugfix] [AURA] Correct aura results when use qwen3-tts in custom voice mode (#4650)

Signed-off-by: R2-Y <ruiruyang2@gmail.com>
This commit is contained in:
rein yang authored and GitHub committed 2026-06-24 17:29:48 +08:00
1 parent fb3abb38fb
commit bb973cb10c
3 files changed
+9 -8

No files matched your search

@@ -287,7 +287,7 @@ def _estimate_tts_prompt_len_from_token_ids(
prompt_len = base_len + max(0, assistant_len - 6)
else:
prompt_len = base_len + 1
return max(32, min(4096, int(prompt_len)))
return int(prompt_len)
if task_type == "Base":
in_context_mode = not bool(x_vector_only_mode)
@@ -306,10 +306,10 @@ def _estimate_tts_prompt_len_from_token_ids(
prompt_len = base_len + max(0, assistant_len - 6)
else:
prompt_len = base_len + 1
return max(32, min(4096, int(prompt_len)))
return int(prompt_len)
# Defensive fallback for unknown task types.
return max(32, min(4096, int(base_len + max(assistant_len, 1))))
return int(base_len + max(assistant_len, 1))
def aura2tts(