But I wonder how I will apply this function as an object to the html tag and make the HTML tag to apply the source to

this.src

This object will be similar to the input tag *

I know the audio tag exists, and I fully know how to use it. But I want to replace the audio tag and functions with this one. It will make it easier for me to make canvas supported audio marks, so that's why I need it.