[Model] Add single-stage Qwen3-TTS with in-Talker streaming codec decode (#8259)

Signed-off-by: Sy03 <1370724210@qq.com>
This commit is contained in:
Sy03 authored and GitHub committed 2026-10-02 21:34:30 +10:00
1 parent 596487fe62
commit e84014dffb
43 files changed
+3565 -90

No files matched your search

@@ -346,3 +346,19 @@ def test_chat_audio_metadata_survives_response_serialization(stream, fmt):
assert audio_file.samplerate == 22050
else:
assert len(raw) == frame_count * 2
def test_float32_pcm_fast_path_matches_soundfile():
from vllm_omni.entrypoints.openai.audio_utils_mixin import _float32_to_pcm16_bytes
rng = np.random.default_rng(0)
audio = np.concatenate(
[
rng.uniform(-1.2, 1.2, 4096),
np.array([-1.0, 1.0, 0.0, -0.0, 32767 / 32768, -1 / 32768, 0.5 / 32768, -0.5 / 32768]),
]
).astype(np.float32)
with BytesIO() as buffer:
soundfile.write(buffer, audio, 24000, format="RAW", subtype="PCM_16")
expected = buffer.getvalue()
assert _float32_to_pcm16_bytes(audio) == expected