Hi, the cause of this is the way
Input.is_action_pressed("...") works. In this case we have to outsmart the editor.
First create a new if function:-
if not Input.is_action_pressed("..."):
This way when you press the button, the audio will start playing but if you are not pressing it it wont play.
the variable audio can be declared as
onready var audio = $AudioStreamPlayer
Hope this helped you,
I am 13 btw. devlping games for a while now