Dr. Richard Zinck commited on
Commit
6b118dd
·
1 Parent(s): 5b273b0
Files changed (1) hide show
  1. audio.py +2 -2
audio.py CHANGED
@@ -1,7 +1,7 @@
1
  """Module containing audio helper functions.
2
  """
3
  import numpy as np
4
-
5
  import config as cfg
6
 
7
  RANDOM = np.random.RandomState(cfg.RANDOM_SEED)
@@ -22,7 +22,7 @@ def openAudioFile(path: str, sample_rate=cfg.SAMPLE_RATE, offset=0.0, duration=N
22
  Returns the audio time series and the sampling rate.
23
  """
24
  # Open file with librosa (uses ffmpeg or libav)
25
- import librosa
26
 
27
  sig, rate = librosa.load(path, sr=sample_rate, offset=offset, duration=duration, mono=True, res_type="kaiser_fast")
28
 
 
1
  """Module containing audio helper functions.
2
  """
3
  import numpy as np
4
+ import librosa
5
  import config as cfg
6
 
7
  RANDOM = np.random.RandomState(cfg.RANDOM_SEED)
 
22
  Returns the audio time series and the sampling rate.
23
  """
24
  # Open file with librosa (uses ffmpeg or libav)
25
+
26
 
27
  sig, rate = librosa.load(path, sr=sample_rate, offset=offset, duration=duration, mono=True, res_type="kaiser_fast")
28