Anita-19 commited on
Commit
1eadf4a
·
verified ·
1 Parent(s): c91a77d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -0
main.py CHANGED
@@ -62,6 +62,7 @@ def adjust_pitch_and_speed(audio_path, pitch_factor, speed_factor):
62
  y_speed = librosa.effects.time_stretch(y_pitch, speed_factor)
63
 
64
  # Save the adjusted audio
 
65
  sf.write(audio_path, y_speed, sr)
66
 
67
  def generate_emotional_speech(text, emotion):
 
62
  y_speed = librosa.effects.time_stretch(y_pitch, speed_factor)
63
 
64
  # Save the adjusted audio
65
+ import soundfile as sf
66
  sf.write(audio_path, y_speed, sr)
67
 
68
  def generate_emotional_speech(text, emotion):