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

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -1
main.py CHANGED
@@ -62,7 +62,6 @@ 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
- import soundfile as sf
66
  sf.write(audio_path, y_speed, sr)
67
 
68
  def generate_emotional_speech(text, emotion):
 
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):