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

SimpleAudio/PyAudio-only playback bug #756

Open
Martysh12 opened this issue Sep 19, 2023 · 0 comments
Open

SimpleAudio/PyAudio-only playback bug #756

Martysh12 opened this issue Sep 19, 2023 · 0 comments

Comments

@Martysh12
Copy link

Unsigned 8-bit WAV files with a 11025hz sample rate will not play correctly using simpleaudio and pyaudio (only ffplay will play it correctly).

Steps to reproduce

  1. Resample an audio file to 11025hz and convert it to an unsigned 8-bit WAV.
  2. Make sure you have only simpleaudio or pyaudio installed. Uninstall ffplay.
  3. Load the audio file into an AudioSegment and play it using pydub.playback.play.
  4. You will hear the sound, except it's extremely loud.

Expected behavior

The sound is played back correctly.

Actual behavior

The audio will be extremely loud. Using ffplay instead of simpleaudio or pyaudio will produce the correct audio.

Your System configuration

  • Python version: 3.11.5
  • Pydub version: 0.25.1
  • ffmpeg or avlib?: ffmpeg
  • ffmpeg/avlib version: n6.0

Is there an audio file you can include to help us reproduce?

I've included an audio file and a test script.

pluck.wav.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

1 participant