Whisper-WebUI / tests /test_vad.py
jhj0517
Update to use enum
4c4ecfe
raw
history blame
755 Bytes
from modules.utils.paths import *
from modules.whisper.whisper_factory import WhisperFactory
from modules.whisper.data_classes import *
from test_config import *
from test_transcription import download_file, test_transcribe
import gradio as gr
import pytest
import os
@pytest.mark.parametrize(
"whisper_type,vad_filter,bgm_separation,diarization",
[
(WhisperImpl.WHISPER.value, True, False, False),
(WhisperImpl.FASTER_WHISPER.value, True, False, False),
(WhisperImpl.INSANELY_FAST_WHISPER.value, True, False, False)
]
)
def test_vad_pipeline(
whisper_type: str,
vad_filter: bool,
bgm_separation: bool,
diarization: bool,
):
test_transcribe(whisper_type, vad_filter, bgm_separation, diarization)