mirror of
https://github.com/rakuri255/UltraSinger.git
synced 2026-11-22 05:47:50 +09:00
25 lines
788 B
Python
25 lines
788 B
Python
"""Tests for whisper.py"""
|
|
|
|
import os
|
|
import unittest
|
|
from src.modules.Audio.denoise import denoise_vocal_audio
|
|
import pytest
|
|
|
|
|
|
class DenoiseTest(unittest.TestCase):
|
|
@pytest.mark.skip(reason="Skipping this FUNCTION level test, can be used for manual tests")
|
|
def test_ffmpeg_reduce_noise(self):
|
|
# Arrange
|
|
test_dir = os.path.dirname(os.path.abspath(__file__))
|
|
root_dir = os.path.abspath(test_dir + "/../../..")
|
|
test_file_abs_path = os.path.abspath(root_dir + "/test_input/vocals.wav")
|
|
test_file_name = os.path.basename(test_file_abs_path)
|
|
test_output = test_dir + "/test_output"
|
|
|
|
# Act
|
|
denoise_vocal_audio(test_file_abs_path, test_output + "/output_" + test_file_name)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|