File size: 1,236 Bytes
a7c2243
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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

output_dir: ???

data:
  pattern: "*.json"
  manifest_filepath: ???
  tarred_audio_filepaths: null
  sample_rate: 16000
  max_duration: 30 # you may need to update it for your dataset
  min_duration: 0.1
  batch_duration: 300  # you may disable batch_duration by setting it to `null`
  batch_size: null 
  shuffle: false
  seed: 42
  num_workers: 8
  pin_memory: true
  quadratic_duration: 30
  num_buckets: 30
  num_cuts_for_bins_estimate: 10000
  bucket_buffer_size: 10000
  shuffle_buffer_size: 10000

  random_padding:
      prob: 1.0
      min_pad_duration: 0.0  # minimum duration of pre/post padding in seconds
      max_pad_duration: 3.0  # maximum duration of pre/post padding in seconds
      max_total_duration: 40.0  # maximum total duration of the padded audio in seconds
      pad_distribution: 'constant'  # distribution of padding duration, 'uniform' or 'normal' or 'constant'
      pre_pad_duration: 0.2
      post_pad_duration: 3.0

  augmentor:
    white_noise:
      prob: 0.0
      min_level: -90
      max_level: -40
    gain:
      prob: 0.0
      min_gain_dbfs: -10.0
      max_gain_dbfs: 10.0
    noise:
      prob: 1.0
      manifest_path: ???
      min_snr_db: 0
      max_snr_db: 20
      max_gain_db: 300.0