# SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project import base64 import numpy as np import pytest from vllm_omni.engine.duplex.audio import convert_input_audio_with_rate pytestmark = [pytest.mark.core_model, pytest.mark.cpu] def test_pcm16_input_conversion_is_pure_and_reports_target_rate(): pcm16 = np.array([-32768, 0, 32767], dtype="