Pause Sound on second click

Hej guys,

based on @Chiaradesignsthings code idea, I have implemented a button / image that plays a sound when you click it. The code looks as follows:
For the html on page:

    `<audio id="play" src=""></audio>
    <a onmouseup="playSound()" outline="none()">
    	<img src="">

And for the footer code:

	function playSound () {

For the second click I want the sound to stop playing or pausing.

Does anyone has an idea on how to realize that?

Thanks in advance,