Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Has no attribute 'decode' Error #811

Open
guangyingyu opened this issue Aug 29, 2024 · 0 comments
Open

Has no attribute 'decode' Error #811

guangyingyu opened this issue Aug 29, 2024 · 0 comments

Comments

@guangyingyu
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@guangyingyu and others