2025-09-01 12:07:46 +02:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
from vllm.assets.audio import AudioAsset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
|
|
|
|
def mary_had_lamb():
|
2025-10-05 15:06:22 +01:00
|
|
|
path = AudioAsset("mary_had_lamb").get_local_path()
|
2025-09-01 12:07:46 +02:00
|
|
|
with open(str(path), "rb") as f:
|
|
|
|
|
yield f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
|
|
|
|
def winning_call():
|
2025-10-05 15:06:22 +01:00
|
|
|
path = AudioAsset("winning_call").get_local_path()
|
2025-09-01 12:07:46 +02:00
|
|
|
with open(str(path), "rb") as f:
|
|
|
|
|
yield f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
|
|
|
|
def foscolo():
|
|
|
|
|
# Test translation it->en
|
2025-10-05 15:06:22 +01:00
|
|
|
path = AudioAsset("azacinto_foscolo").get_local_path()
|
2025-09-01 12:07:46 +02:00
|
|
|
with open(str(path), "rb") as f:
|
|
|
|
|
yield f
|