Repeat audio play without overlap - audio

I would like to play "no mask mp3" whenever "no mask" is recognized, but I keep hearing the audio overlapping. How can I play with delay so that the audio does not overlap?
please help me thanks
enter image description here

Related

Lua v.5.2 audio.playbg command not working

I want to add nice background music to my Lua project.
But I can’t figure out how to do it.
I tried like it this
true = audio.playbg(/Documents/source/sound/ActionMusic.Mp3,boolean,0.3,0.0)
I expected to have action background music (ActionMusic.mp3) that repeats when over with 30% volume and sound from both speakers

Fade in Fade Out animation between Videos (AVPlayer)

I want do play different videos according to selected button and I want to make a smooth transition between the videos with a fade in fade out transition.
Every time when I change the video, a black background appears and the video start.

Can anyone explain how this image protection trick is done?

If you look at this image
you can see it just fine (with anti theft diagonals over it.) in a browser but trying copying it and opening it up in your favorite image editor. The image is mostly black with the lines and an almost impossible to see version of the shape in editors.
I'm guessing they messed with the png meta data that browsers don't generally read but editors do?
It's not image protection. The file contains an alpha channel. The area between the hash lines has an alpha of 0, which means transparent. Many image viewers do strange things in this situation. They may, for example, clear the background to black before drawing the image.

AForge.net Crop Car Photo

I have just started using AForge.net and would like to know if there is a way to crop an photo containing a car to remove most of the background and leave only the car.
The car photo would be taken using a mobile device, which means that it could be any type of car, colour, background.
I have tried a few things including using blob count to try and detect car shape, however this only detects the wheels.
I need the solution to be c# and be capable of running on mono (xamarin).
Thanks in advance for any assistance.
I have attached a photo, illustrating input and expected image.
the key here is to get the car color by searching for the dominating color in the middle of the picture (assuming that the car body paint will be their) make a copy for processing then try HSL filtering for the found color which will keep only the car color and remove the background
AForge HSL Filtering
after that grayscale > blob search and get the biggest blob rectangle then crop that rectangle from the original image ,, DONE! :)
i would support you with some code if you want to

TMRpcm playback and analogread issue on Arduino

I am working on an Arduino toy (using Uno). When people press the Force Sensitive Resistor, it triggers the .wav audio which is played by the TMPpcm library.
However, I realized once the audio is played the analogread from the FSR got messed up.
(the value on the FSR no longer goes back to 0, instead, it's stuck with some numbers.
I tried to set it back to 0 at the end of the function. didn't work.)
also tried with digitalread with thick buttons, it's fine. But I really would love to use the thin FSR so I can put it in papers.
Any thought?
Thanks a lot!!
Put a resistor from the positive side of the "button" to ground. Should pull the value down to zero.

Resources