<img src="play_ico.svg" onClick="miniPlay('sound1.mp3')">
<img src="play_ico.svg" onClick="miniPlay('sound2.mp3')">
var miniplay="0";
function miniPlay(url){
audio = new Audio(url);
if (miniplay==0) {audio.play(); miniplay=1;}
else {audio.pause(); miniplay=0;}
}