I have one big wav file:
from pydub import AudioSegment
big_aduio_file= "movie.wav"
audio = AudioSegment.from_wav(big_aduio_file)
And from it, I make a slice:
start = 6800
end = 10000
audio_chunk=audio[start:end]
Then, After I done a lot of things to the audio_chunk without changing its length I want to put it back to the original audio
#audio_chunk = do_stuff(audio_chunk)
audio[start:end] = audio_chunk
Then, I see the following error:
TypeError: 'AudioSegment' object does not support item assignment
What is the proper way of doing this?