Whisper-WebUI / tests /test_bgm_separation.py
jhj0517
Skip test that is too heavy to run in action
74b1f92
raw
history blame
1.27 kB
from modules.utils.paths import *
from modules.whisper.whisper_factory import WhisperFactory
from modules.whisper.whisper_parameter import WhisperValues
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",
[
("whisper", False, True, False),
("faster-whisper", False, True, False),
("insanely_fast_whisper", False, True, False)
]
)
def test_bgm_separation_pipeline(
whisper_type: str,
vad_filter: bool,
bgm_separation: bool,
diarization: bool,
):
test_transcribe(whisper_type, vad_filter, bgm_separation, diarization)
@pytest.mark.skip(reason="Too heavy to run in actions with all of other tests")
@pytest.mark.parametrize(
"whisper_type,vad_filter,bgm_separation,diarization",
[
("whisper", True, True, False),
("faster-whisper", True, True, False),
("insanely_fast_whisper", True, True, False)
]
)
def test_bgm_separation_with_vad_pipeline(
whisper_type: str,
vad_filter: bool,
bgm_separation: bool,
diarization: bool,
):
test_transcribe(whisper_type, vad_filter, bgm_separation, diarization)