# Manipulate the audio (example) sound = AudioSegment.from_mp3("song.mp3") sound_with_altered_pitch = sound._spawn(sound.raw_data, overrides={"frame_rate": int(sound.frame_rate * 1.5)}) sound_with_altered_pitch.export("manipulated_song.mp3", format="mp3")
app = Flask(__name__)
return send_file('manipulated_song.mp3', as_attachment=True)
# Manipulate the audio (example) sound = AudioSegment.from_mp3("song.mp3") sound_with_altered_pitch = sound._spawn(sound.raw_data, overrides={"frame_rate": int(sound.frame_rate * 1.5)}) sound_with_altered_pitch.export("manipulated_song.mp3", format="mp3")
app = Flask(__name__)
return send_file('manipulated_song.mp3', as_attachment=True) Download Ummet Ozcan Manipulated mp3