I am new to python and am attempting to build a simple alarm app (command line for now). This is using Python 3.6 and I am developing on Ubuntu 18.04. When I play a sound using pydub, playsound or simpleaudio, the sound is preceded by an annoying click, which I presume is meant to emulate the pressing of a button on a machine. I may have missed it in the docs, but do not see anything.
To be clear, this clicking does not exist in the sound file. I have put the play command in a loop to verify and only hear it on the initial play. For example:
# run pydub
sound = AudioSegment.from_file(f, format="wav")
# play(sound)
for _ in range(2):
play(sound)
This happens regardless of playing wav, mp3 or flac.
FWIW - I have been unsuccessful using python-vlc and pygame. I fear spending much time only to continue to hear the "click".
So, the question is, how do I prevent the click or what library/module should I use to achieve playback of a snippet in such a simple app?