mirror of
https://github.com/rakuri255/UltraSinger.git
synced 2026-11-26 08:58:34 +09:00
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
25 lines
788 B
Python
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()
|