How to make the browser play a local mp3 when a span displays on the page?

When we accidentally scan a duplicate, Red text appears in the browser:

<span id="lblMessage" style="color:Red;font-weight:bold;">
    Duplicate serial number found.
</span> 

Can you please show javascript that we can add to a plugin like tampermonkey or chrome extension like “Edit – User JavaScript and CSS” that would play a local audio alert with error.mp3.

I have error.mp3 on local drive.

Thank you!