Reading .mp3 file bytes and changing them, then re-writing them to a new .mp3 file. I was not sure if I should use the pydub module for this. Looking for a proper way, as I am eventually going to change other things such as overlaying sounds to .mp3 files.
# Open with open('./test.mp3', 'rb') as f: # Read for c in f.read(): # Print print(bin(c)[2:]) # Write new .mp3 file after changing bytes
I know there are specific headers and sections for .mp3 files, such as artwork ecetra, and would like to specifically focus on the data. How do you re-write .mp3 binary bytes? While reading them?
https://stackoverflow.com/questions/67352892/reading-mp3-file-bytes-and-re-writing-data-of-mp3-audio-only-python3 May 02, 2021 at 12:05PM
没有评论:
发表评论