How to save sound after change volume of channels in pygame

Viewed 31

I want to 'save' music after that I changed the channel volume. My code is like this:

from pygame import mixer
import time

mixer.init()
sound0 = mixer.Sound('Prison.mp3')
channel0 = mixer.Channel(0)
channel0.play(sound0)
channel0.set_volume(1.0, 0.0)

time.sleep(sound0.get_length())

after this the music just play in left channel and in right channel nothing go to play. Now I want to save this music. thank you

1 Answers

In this case I think you should use another software to minipulate your audio file to play in left channel only

you can easily do that in audacity by following these steps:

  1. open your audio file in audacity.
  2. move the second slider see image all the way to the left to make audio come out from left channel only.
  3. export your audio.
Related