How to convert an AudioSegment into a bytes-like object in Python

34 Views Asked by At

I'm using BunnyCDN to store some files, and it's required to store the audio as a binary file

# TODO: Upload the merged audio to the cloud storage: `merged_audio_path`
access_key = "*************-4bfe"
storage_zone_name = "***********-audios"
region = "uk"
merged_audio_bytes = merged_audio.raw_data
response = upload_file(access_key, storage_zone_name, region, merged_audio, "generic_name")

here is what I have done .

0

There are 0 best solutions below