HoneyTian commited on
Commit
d8a15c9
·
1 Parent(s): 8aea62c
Files changed (2) hide show
  1. install.sh +5 -5
  2. toolbox/audio_edit/reverb.py +3 -2
install.sh CHANGED
@@ -48,15 +48,15 @@ if [ ${stage} -le 1 ] && [ ${stop_stage} -ge 1 ]; then
48
  cd "${data_dir}" || exit 1;
49
 
50
  # https://www.openslr.org/26/
51
- wget https://www.openslr.org/resources/26/sim_rir_8k.zip
52
- wget https://www.openslr.org/resources/26/sim_rir_16k.zip
53
 
54
- unzip sim_rir_8k.zip
55
  unzip sim_rir_16k.zip
56
 
57
  # https://www.openslr.org/28/
58
- wget https://www.openslr.org/resources/28/rirs_noises.zip
59
- unzip rirs_noises.zip
60
 
61
  fi
62
 
 
48
  cd "${data_dir}" || exit 1;
49
 
50
  # https://www.openslr.org/26/
51
+ # wget https://www.openslr.org/resources/26/sim_rir_8k.zip
52
+ # unzip sim_rir_8k.zip
53
 
54
+ wget https://www.openslr.org/resources/26/sim_rir_16k.zip
55
  unzip sim_rir_16k.zip
56
 
57
  # https://www.openslr.org/28/
58
+ # wget https://www.openslr.org/resources/28/rirs_noises.zip
59
+ # unzip rirs_noises.zip
60
 
61
  fi
62
 
toolbox/audio_edit/reverb.py CHANGED
@@ -12,6 +12,8 @@ import numpy as np
12
  import pedalboard
13
  import pyroomacoustics as pra
14
 
 
 
15
 
16
  def reverb_by_pedalboard(signal: np.ndarray,
17
  sample_rate: int,
@@ -83,8 +85,7 @@ def reverb_by_convolve(signal: np.ndarray,
83
  return reverberant_audio
84
 
85
 
86
- slr28_rir_path = r"E:\programmer\asr_datasets\dns-challenge\datasets.impulse_responses\datasets\impulse_responses\SLR28\RIRS_NOISES\simulated_rirs"
87
- slr28_rir_path = Path(slr28_rir_path)
88
 
89
 
90
  @lru_cache(maxsize=10)
 
12
  import pedalboard
13
  import pyroomacoustics as pra
14
 
15
+ from project_settings import project_path
16
+
17
 
18
  def reverb_by_pedalboard(signal: np.ndarray,
19
  sample_rate: int,
 
85
  return reverberant_audio
86
 
87
 
88
+ slr28_rir_path = project_path / "data/impulse_responses/simulated_rirs_16k"
 
89
 
90
 
91
  @lru_cache(maxsize=10)