BGE 2.6 stop sound script doesnt work

i have a problem with stopping sound actuators.
the sounds start playing at specific time and i want them all to stop when i push a key. i’ve tried a number of methods, but nothing seems to work, although i dont get any errors in the concole.
here are some of the codes that i tried:


cont = logic.getCurrentController()
own=cont.owner
sens = cont.sensors['audio1']
sens.invert
own.sendMessage("audio1")

and this


cont = logic.getCurrentController()
own=cont.owner
actu=cont.actuators['audio1']
actu.stopSound()

i also tried solving it with logic bricks(sending negative pulse with NOR controller).
any help would be much appreciated.

p.s.the sound files are .wav files

not much enthusiasm i see:)
ok…i tried some more solutions.
this is my current version. can anyone tell me if there are any flaws in my script?

from bge import logic
import mathutils
import time

cont=logic.getCurrentController()
sens=cont.sensors['spacer']
if sens.positive:

    sens1 = cont.sensors['audio1']
    actu1 = cont.actuators['audio1']

    if sens1.positive:
        cont.deactivate(actu1)
    else:pass
        
    sens2=cont.sensors['audio2']
    actu2=cont.actuators['audio2']
    
    if sens2.positive:
        cont.deactivate(actu2)
    else:pass
        
    sens3=cont.sensors['audio3']
    actu3=cont.actuators['audio3']
    
    if sens3.positive:
        cont.deactivate(actu3)
    else:pass

    sens4=cont.sensors['visual1']
    actu4=cont.actuators['visual1']
    
    if sens4.positive:
        cont.deactivate(actu4)
    else:pass
        
else:pass
      

i dont get any errors from console.it just doesn’t work.
any help would be much appreciated.

p.s.i have problem with sound playing in general.only “loop bidirectional” mode seems to work properly (which i would like to avoid). any other mode just produces a small “bleep” when the sound is supposed to start playing.all sounds are .wav,mono.any ideas?