Music Assistant: Can't play announcement from local media file?

You have to enter an URL to play the notification sound. I can’t enter an URL for my local device’s media files though. Why not add a field to play a local media file? Or at least a Samba network address field.

Why not?

Put your files in config/www, access them at your HA ip address / local.

Because it doesn’t work. I get errors. What is the exact URL format that works for you?
I’ve tried:
http://192.168.1.81:8123/media-browser/browser/app%2Cmedia-source%3A%2F%2Fmedia_source/test.mp3
For example.
Thanks

I figured it out. Like @tom_l said, you place a file (yourfile.mp3) in the config/www folder, and enter http://192.yourlocalIP/local/yourfile.mp3 (I’m playing an mp3 for announcement). I don’t know where this is documented, but for some reason this works and HA translated those requests into that directory. I guess that’s why it’s called a www directory?

https://www.home-assistant.io/integrations/http/#hosting-files