[to #42322933] separate audio requirements

This commit is contained in:
bin.xue
2023-02-07 02:52:01 +00:00
parent 86128cd3a8
commit 1d2b7e8634
6 changed files with 59 additions and 47 deletions

View File

@@ -1,45 +1,4 @@
bitstring -r audio/audio_asr.txt
easyasr>=0.0.2 -r audio/audio_kws.txt
espnet==202204 -r audio/audio_signal.txt
funasr>=0.1.7 -r audio/audio_tts.txt
funtextprocessing>=0.1.1
greenlet>=1.1.2
h5py
inflect
jedi>=0.18.1
keras
kwsbp>=0.0.2
librosa
lxml
matplotlib
MinDAEC
mir_eval>=0.7
msgpack>=1.0.4
nara_wpe
nltk
# tensorflow 1.15 requires numpy<=1.18
numpy<=1.18
parso>=0.8.3
pexpect>=4.8.0
pickleshare>=0.7.5
prompt-toolkit>=3.0.30
# protobuf version beyond 3.20.0 is not compatible with TensorFlow 1.x, therefore is discouraged.
protobuf>3,<3.21.0
ptflops
ptyprocess>=0.7.0
py_sound_connect>=0.1
pygments>=2.12.0
pysptk>=0.1.15,<0.2.0
pytorch_wavelets
PyWavelets>=1.0.0
rotary_embedding_torch>=0.1.5
scikit-learn
SoundFile>0.10
sox
speechbrain>=0.5
torchaudio
tqdm
traitlets>=5.3.0
ttsfrd>=0.1.1
unidecode
wcwidth>=0.2.5

View File

@@ -0,0 +1,2 @@
easyasr>=0.0.2
funasr>=0.1.7

View File

@@ -0,0 +1,8 @@
kaldiio
kwsbp>=0.0.2
matplotlib
numpy
py_sound_connect>=0.1
scipy
SoundFile>0.10
tensorboardX

View File

@@ -0,0 +1,11 @@
hyperpyyaml
librosa
MinDAEC
mir_eval>=0.7
numpy
rotary_embedding_torch>=0.1.5
scipy
SoundFile>0.10
speechbrain>=0.5.7
torchaudio
tqdm

View File

@@ -0,0 +1,27 @@
bitstring
greenlet>=1.1.2
inflect
jedi>=0.18.1
librosa
lxml
matplotlib
msgpack>=1.0.4
parso>=0.8.3
pexpect>=4.8.0
pickleshare>=0.7.5
prompt-toolkit>=3.0.30
protobuf
ptflops
ptyprocess>=0.7.0
pygments>=2.12.0
pysptk>=0.1.15,<0.2.0
pytorch_wavelets
PyWavelets>=1.0.0
scikit-learn
sox
tensorboardx
tqdm
traitlets>=5.3.0
ttsfrd>=0.1.1
unidecode
wcwidth>=0.2.5

View File

@@ -83,7 +83,9 @@ def parse_requirements(fname='requirements.txt', with_version=True):
if line.startswith('-r '): if line.startswith('-r '):
# Allow specifying requirements in other files # Allow specifying requirements in other files
target = line.split(' ')[1] target = line.split(' ')[1]
for info in parse_require_file(target): relative_base = os.path.dirname(fname)
absolute_target = os.path.join(relative_base, target)
for info in parse_require_file(absolute_target):
yield info yield info
else: else:
info = {'line': line} info = {'line': line}
@@ -186,7 +188,10 @@ if __name__ == '__main__':
# result in mac/windows compatibility problems # result in mac/windows compatibility problems
if field != Fields.audio: if field != Fields.audio:
all_requires.append(extra_requires[field]) all_requires.append(extra_requires[field])
for subfiled in ['asr', 'kws', 'signal', 'tts']:
filed_name = f'audio_{subfiled}'
extra_requires[filed_name], _ = parse_requirements(
f'requirements/audio/{filed_name}.txt')
extra_requires['all'] = all_requires extra_requires['all'] = all_requires
setup( setup(