cheofusi / just_playback

A small library for playing audio files in python, with essential playback functionality.
MIT License
63 stars 7 forks source link

Glitch sound at the start and end #36

Open kamkudla opened 4 months ago

kamkudla commented 4 months ago

I'm having this perplexing issue, and it's not just with this implementation, but I have tried pygame, simpleaudio, and others.

I get a click/glitch sound at the start of playback. At first I thought it was the device (AirPods), but it persists to internal macbook speakers as well. I've added fade-in and out. I figured it might be a host issue, so I tested with just_playback on my raspberry pi 4 connect to my airpods, and the issue persists.

Any ideas or suggestions?

cheofusi commented 4 months ago

Hi @kamkudla,

Does this happen with all audio files ? And audio file types ?

kamkudla commented 4 months ago

Hi @cheofusi, yes, I tested it with wav, mp3, and ogg. They all have the same issue.

kamkudla commented 4 months ago

I think I might have solved the problem with the simplest fix - I added a much more aggressive fade-in/out using Audacity. Occam's Razor as always.