If you are open to external libraries, you can use pydub to manipulate audio (including volume ) easily. More details
here.
Different audio formats such as wav, mp3, ogg , mp4,wma etc are available. Check
here for more details.
Basically we convert audio to an audiosegment object and then manipulate it for various attributes using pydub.
pydub can be installed using:
pip install pydub #on 2.x and
pip3 install pydub # on 3.x