install freqsplit as a package
This commit is contained in:
@@ -18,3 +18,7 @@ envs/
|
|||||||
|
|
||||||
# site-packages.pth
|
# site-packages.pth
|
||||||
site-packages.pth
|
site-packages.pth
|
||||||
|
|
||||||
|
# Ignore egg-info directory
|
||||||
|
src/freqsplit.egg-info/
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=64"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "freqsplit"
|
||||||
|
version = "0.1.0"
|
||||||
|
|
||||||
|
[tool.setuptools]
|
||||||
|
packages = { find = { where = ["src"] } }
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
import pytest
|
import pytest
|
||||||
from src.input.file_reader import read_audio
|
from freqsplit.input.file_reader import read_audio
|
||||||
from src.input.format_checker import is_supported_format
|
from freqsplit.input.format_checker import is_supported_format
|
||||||
|
|
||||||
def test_read_audio():
|
def test_read_audio():
|
||||||
file_path = "tests/test_audio/cafe_crowd_talk.aiff"
|
file_path = "tests/test_audio/cafe_crowd_talk.aiff"
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import pytest
|
import pytest
|
||||||
import librosa
|
import librosa
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from src.preprocessing.normalize import normalize_audio
|
from freqsplit.preprocessing.normalize import normalize_audio
|
||||||
from src.preprocessing.trim import trim_audio
|
from freqsplit.preprocessing.trim import trim_audio
|
||||||
from src.preprocessing.classify import classify_audio
|
from freqsplit.preprocessing.classify import classify_audio
|
||||||
from src.input.file_reader import read_audio
|
from freqsplit.input.file_reader import read_audio
|
||||||
from src.preprocessing.resample import resample
|
from freqsplit.preprocessing.resample import resample
|
||||||
|
|
||||||
def test_normalize_audio():
|
def test_normalize_audio():
|
||||||
file_path = "tests/test_audio/cafe_crowd_talk.aiff"
|
file_path = "tests/test_audio/cafe_crowd_talk.aiff"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
import pytest
|
import pytest
|
||||||
import soundfile as sf
|
import soundfile as sf
|
||||||
from src.refinement.deepfilternet_wrapper import noisereduce
|
from freqsplit.refinement.deepfilternet_wrapper import noisereduce
|
||||||
|
|
||||||
def test_noisereduce():
|
def test_noisereduce():
|
||||||
"""Test noise reduction function to ensure output is valid."""
|
"""Test noise reduction function to ensure output is valid."""
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ import pytest
|
|||||||
import tempfile
|
import tempfile
|
||||||
import soundfile as sf
|
import soundfile as sf
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from src.input.file_reader import read_audio
|
from freqsplit.input.file_reader import read_audio
|
||||||
from src.preprocessing.trim import trim_audio
|
from freqsplit.preprocessing.trim import trim_audio
|
||||||
from src.preprocessing.resample import resample
|
from freqsplit.preprocessing.resample import resample
|
||||||
from src.separation.demucs_wrapper import separate_audio_with_demucs
|
from freqsplit.separation.demucs_wrapper import separate_audio_with_demucs
|
||||||
from src.separation.convtasnet_wrapper import separate
|
from freqsplit.separation.convtasnet_wrapper import separate
|
||||||
from src.postprocessing.audio_writer import export_audio
|
from freqsplit.postprocessing.audio_writer import export_audio
|
||||||
|
|
||||||
|
|
||||||
def test_demucs_separation_with_preprocessing():
|
def test_demucs_separation_with_preprocessing():
|
||||||
|
|||||||
Reference in New Issue
Block a user