If you want that to work you need to create you own audio conatiner and set the audio scr to your file in the resource.
There is plent about this on site…
There is now just one button "Play Audio" and clicking it triggers the function "audioTest()". The code is identical to what You previously had written.
What is different as @MarkHunte indicated is we are using the "Play Audio" button (or any basically any element - could be simply a rectangle) as a container to place the "audio tag".
"Play Audio" button innerHTML:
Play Audio // This is the visible text
<audio id="audio1" width="400" preload="auto">
<source src="${resourcesFolderName}/audio1.m4a" type="audio/mpeg">
</audio>
Important Note: The id referenced by "audioTest()" is the id in the audio tag itself - not the id of the container (in this case the button) as referenced in the Hype interface settings in the "Identity Inspector".