Has no attribute 'decode' Error
guangyingyu opened this issue · 0 comments
guangyingyu commented
Steps to reproduce
for mp3_file in mp3_files:
mp3_path = os.path.join(input_folder, mp3_file)
audio = AudioSegment.from_file(mp3_path)
combined += audio
combined += blank_sound
Expected behavior
Combining Multiple MP3 Audio Segments
Actual behavior
File "B:\ArcGIS Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pydub\utils.py", line 276, in mediainfo_json
output = output.decode("utf-8", 'ignore')
AttributeError: 'str' object has no attribute 'decode'
Your System configuration
- Python version: 3.9.11
- Pydub version: 0.25
- ffmpeg or avlib?: ffmpeg-master-latest-win64-gpl
- ffmpeg/avlib version:
Is there an audio file you can include to help us reproduce?
You can include the audio file in this issue - just put it in a zip file and drag/drop the zip file into the github issue.
mp3.zip