Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Loud audio "noise spike" at the end of an audio play in a python script - driving me crazy :)

Featured Replies

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

 

 

I assume the audio chip or some sort of circuit is disabled once no longer audio is played. I don't know a fix but maybe as a workaround try playing an either very quite or high/low tone that keeps it enabled.

 

This distinctively cracking noise is known across all audio equipment where on better this issue is mitigated while on cheaper mostly ignored :lol:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.