Playing audio via an external URL

Hey, has anyone tried playing audio from an external URL? Whenever I try using a URL, it throws a “failed to fetch” error

(The URL I’m using for testing is valid, as it can be opened on a browser - test mp3 file.)

If this feature is not available, is it possible to download audio during runtime and play it? or read the audio from a stream, etc

PS: I’m essentially trying to achieve an interactive speech-to-text and text-to-speech feature as if communicating with an in-game character.

Any help in that direction is appreciated. Many thanks !!

I’ll look into this further, it could be something related to CORs and the host website.

Thank you, I appreciate it.

PS: I was able to sort of ‘inject’ a hidden HTML audio element and was able to play the audio. However, it makes it more complicated to manage the audio playback. So it would be intuitive if it could be achieved through Niantic’s audio component.