Audio file won't play using resourceUrl inside plugin
I think the cleanest way to solve your issue is to create a new Asset for each of your audio files and relate it to your entries.

&lt;audio autoplay loop&gt;
    {% set audioFiles = entry.assetFieldHandle.all() %}
    {% for asset in audioFiles %}
        &lt;source src="{{ asset.getUrl() }}" type="{{ asset.getMimeType() }}"&gt;
    {% endif %}
&lt;/audio&gt;