Playing audio files using an image map

Hello everybody I am new to the forum thank you very much for reading my problem!

I am currently working on an interactive Christmas story for children in Harlowe 3.1.0. I made a couple illustrations myself and would like to work with sound maps. So that the children could klick on one part of an image and it would play sound a and if they click on another part of the same image it would play sound b.

I am really new to twine and I already tried everything I could. But I just got the two ideas to work separately.
One plays a sound, when you klick on the picture, but stays in the story like I wanted to.

Example Code:

<script>
var audio = new Audio("https://freesound.org/data/previews/212/212742_1979597-lq.mp3" ) ;

audio.oncanplaythrough = function(){
audio.play();
}

</script>

<input type="image" src="https://images.squarespace-cdn.com/content/v1/5d66dc9719efcd0001732bf0/1572991235963-9FJC3BM1D62CPT3CQ2ZU/ke17ZwdGBToddI8pDm48kNiEM88mrzHRsd1mQ3bxVct7gQa3H78H3Y0txjaiv_0fDoOvxcdMmMKkDsyUqMSsMWxHk725yiiHCCLfrh8O1z4YTzHvnKhyp6Da-NYroOW3ZGjoBKy3azqku80C789l0s0XaMNjCqAzRibjnE_wBlkZ2axuMlPfqFLWy-3Tjp4nKScCHg1XF4aLsQJlo6oYbA/IMG_2437-FullSizeRender.jpg?format=1000w" width="500" height="500" onclick="audio.play()">

And the other one works as an image map with two different areas, but when you klick on one of them it opens the website where the audio came from and plays it there, while leaving the story.

Example Code:

<img src="https://static1.squarespace.com/static/5d66dc9719efcd0001732bf0/t/5dc1f0fd87eaac6df82bd197/1572991244497/IMG_2437-FullSizeRender.jpg?format=750w" usemap="#image-map">

<map name="image-map">
    <area target="" alt="house" title="house" href="https://freesound.org/data/previews/44/44805_111413-lq.mp3" coords="176,232,454,451" shape="rect">
    <area target="" alt="shed" title="shed" href="https://freesound.org/data/previews/212/212742_1979597-lq.mp3" coords="502,267,691,436" shape="rect">
</map>

Does anyone have an idea or is it simply not possible to combine these two? Even my professor at uni was not sure if it would work (the story is supposed to count as my final project in an electronic literature course that I am taking). But I really like the idea and would be so happy if there was an opportunity for this to work.

I really appreciate every suggestion for my problem that you have, thank you so much for taking the time.

Kind regards
Eve