-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (58 loc) · 2.48 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from setuptools import setup, find_namespace_packages
def _read(filename: str) -> str:
"""
Reads in the content of the file.
:param filename: The file to read.
:return: The file content.
"""
with open(filename, "r") as file:
return file.read()
setup(
name="wai.annotations.audio",
description="Module with audio plugins for wai.annotations.",
long_description=f"{_read('DESCRIPTION.rst')}\n"
f"{_read('CHANGES.rst')}",
url="https://github.com/waikato-datamining/wai-annotations-audio",
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Topic :: Scientific/Engineering :: Mathematics',
'Programming Language :: Python :: 3',
],
license='Apache License Version 2.0',
package_dir={
'': 'src'
},
packages=find_namespace_packages(where='src'),
namespace_packages=[
"wai",
"wai.annotations"
],
version="1.0.2",
author='Peter Reutemann',
author_email='[email protected]',
install_requires=[
"wai.annotations.core>=0.1.8",
"librosa",
"soundfile",
],
entry_points={
"wai.annotations.plugins": [
# Sources
# ISPs
"convert-to-mono=wai.annotations.audio.isp.convert_to_mono.specifier:ConvertToMonoISPSpecifier",
"convert-to-wav=wai.annotations.audio.isp.convert_to_wav.specifier:ConvertToWavISPSpecifier",
"pitch-shift=wai.annotations.audio.isp.pitch_shift.specifier:PitchShiftISPSpecifier",
"resample-audio=wai.annotations.audio.isp.resample.specifier:ResampleAudioISPSpecifier",
"trim-audio=wai.annotations.audio.isp.trim.specifier:TrimAudioISPSpecifier",
"time-stretch=wai.annotations.audio.isp.time_stretch.specifier:TimeStretchISPSpecifier",
# XDCs
"mel-spectrogram=wai.annotations.audio.xdc.mel_spectrogram.specifier:MelSpectrogramISPSpecifier",
"mfcc-spectrogram=wai.annotations.audio.xdc.mfcc_spectrogram.specifier:MFCCSpectrogramISPSpecifier",
"stft-spectrogram=wai.annotations.audio.xdc.stft_spectrogram.specifier:STFTSpectrogramISPSpecifier",
# Sinks
"audio-info-ac=wai.annotations.audio.format.audio_info.specifier:AudioInfoACOutputFormatSpecifier",
"audio-info-sp=wai.annotations.audio.format.audio_info.specifier:AudioInfoSPOutputFormatSpecifier",
]
}
)