Spaces:
Running
Running
Update main.py
Browse files
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):
|