Files
UltraSinger/pytest/modules/Audio/test_denoise.py
T
Benedikt Wagener de45b7c96a downgrade tensorflow dependency, improve plot, add timer
downgrade tensorflow dependency to last version with gpu support for windows
update plot to be a linear progression between notes on the y axis and include confidence information
add timer component to measure process time
2023-09-13 23:56:42 +02:00

25 lines
788 B
Python

"""Tests for whisper.py"""
import os
import unittest
from src.modules.Audio.denoise import ffmpeg_reduce_noise
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
ffmpeg_reduce_noise(test_file_abs_path, test_output + "/output_" + test_file_name)
if __name__ == "__main__":
unittest.main()