ganeshkumar383 commited on
Commit
5435591
·
verified ·
1 Parent(s): 1204693

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -9,7 +9,7 @@ def apply_equalizer(y, bass_gain, mid_gain, treble_gain, sr):
9
  return (y_bass + y_mid + y_treble) / 3
10
 
11
  def apply_pitch_shift(y, sr, n_steps):
12
- return librosa.effects.pitch_shift(y, sr, n_steps=n_steps)
13
 
14
  def extract_lyrics(file):
15
  content = file.read().decode('utf-8')
 
9
  return (y_bass + y_mid + y_treble) / 3
10
 
11
  def apply_pitch_shift(y, sr, n_steps):
12
+ return librosa.effects.pitch_shift(y, sr=sr, n_steps=n_steps)
13
 
14
  def extract_lyrics(file):
15
  content = file.read().decode('utf-8')