Fix Qwen3-TTS no-async-chunk payload splitting
Signed-off-by: Sy03 <1370724210@qq.com>
This commit is contained in:
1 parent
20d43ce24d
commit
c523026a8e
4 files changed
+76
-5
No files matched your search
@@ -3495,12 +3495,16 @@ class OmniOpenAIServingSpeech(OpenAIServing, AudioMixin):
|
||||
request_id = request_id or f"speech-{random_uuid()}"
|
||||
qwen3_ref_audio_warmup_artifact_key: str | None = None
|
||||
|
||||
# If this is a streaming request, we need to coerce
|
||||
# cumulative outputs to delta outputs; this ensures
|
||||
# we don't emit redundant MM data & drain after emitting.
|
||||
# If this is a streaming request with real async chunks, we need to
|
||||
# coerce cumulative outputs to delta outputs; this ensures we don't
|
||||
# emit redundant MM data & drain after emitting. Full-payload
|
||||
# (async_chunk=False) TTS has no incremental audio chunks, so keep
|
||||
# FINAL_ONLY semantics and let the streaming response send the final
|
||||
# waveform once.
|
||||
# list() makes a copy to avoid mutating the params.
|
||||
sampling_params_list = list(self.engine_client.default_sampling_params_list)
|
||||
is_streaming_request = request.is_streaming()
|
||||
async_chunk = getattr(self.engine_client.model_config, "async_chunk", True)
|
||||
is_streaming_request = request.is_streaming() and bool(async_chunk)
|
||||
sampling_params_list = coerce_param_message_types(sampling_params_list, is_streaming_request)
|
||||
|
||||
# Build prompt + tts_params via the per-model adapter (RFC #4327). Every
|
||||
|
||||
Reference in new issue
Block a user