Loud audio "noise spike" at the end of an audio play in a python script - driving me crazy :)
bbence84 opened this issue · comments
I am getting a quite loud audio spike / noise sound at the end of an audio play in python when using the following script:
https://gist.github.com/bbence84/04d1935a92a4b4ab3d44bf182ea4bcc1
Wav to be played, but it does it with any other wav or mp3 file: https://easyupload.io/vbat12
It uses the speech_recognition package and the preferredsoundplayer package, but also the VLC python package shows the same when playing the audio.
When changing the audio play to be non-blocking for the python script, the issue goes away... Very strange.
This is driviging me nuts.
I'm on Armbian 22.11.1 Jammy / 22.04.1 LTS, kernel 5.15.80-sunxi. Orange Pi Zero LTS.
Thanks for any ideas!
Bence