[skip ci]cleanup(assets): remove dead vllm_omni/assets/video.py (#4120)

Signed-off-by: Shylin26 <parishachauhan26@gmail.com>
This commit is contained in:
Shylin authored and GitHub committed 2026-06-05 11:21:38 +08:00
1 parent b63b36ded3
commit 3875b81c18
1 file changed
-16
-16
View File
@@ -1,16 +0,0 @@
import numpy as np
from vllm.assets.video import VideoAsset
from vllm.multimodal.media.audio import load_audio
def extract_video_audio(path: str = None, sampling_rate: int = 16000) -> np.ndarray:
"""This function extracts the audio from a video file path and returns the audio as a numpy array.
Args:
path: The path to the video file.
Returns:
The audio as a numpy array.
"""
if not path:
path = VideoAsset(name="baby_reading").video_path
audio_signal, sr = load_audio(path, sr=sampling_rate)
return audio_signal