That wouldn’t work as the JS is compiled by our rather complicated asset pipeline.
If you want a quick and hacky solution, a theme-component that listens to our decoratedCooked
callback and changes the audio
element is your best bet. You can learn about it on Developer’s guide to Discourse Themes