WallPanel Audio problem

I’ve moved over to WallPane from Fully Kiosk as I found that too slow when rendering graphs.

I’m trying to use the audio command and not hearing anything.
I have an audio file on a network drive with the path

192.168.x.y/Public/Media/hourlychimebeg.mp3

When I type this in Chrome it plays the clip.
When I use HA Developer Tool/Actions to send the URL as part of an audio command to Wallpanel, I get nothing. No indication of an error in HA nor the panel itself.
The Topic is

wallpanel/mywallpanel/command

and the Payload

{"audio":"file://192.168.x.y/Public/Media/hourlychimebeg.mp3"}

I’ve tried it withoiut the file:// prefix and with http://. They don’t work either.
The volume is set to 80%.
If I send the payload

{"speak":"hello"}

that works fine.

What am I missing?

Edit:

I randomly looked for an audio clip on the net and came across this url of a sci fi space laser firing…

https://codeskulptor-demos.commondatastorage.googleapis.com/GalaxyInvaders/alien_shoot.wav

When I use this in the payload, it works! Still don’t see what I’m missing though.

Hi,

Trying to find an answer to this question I found this topic. For me it is working this way. I put the audio file on the folder www. Then, the payload must contain the word “local” as it is the reference for that folder. Example:
{“audio”:“http://(your ip)/local/beep_pending.wav”}

Actually, I use https but I think the http version should work:{“audio”:“https://(yourduckdns).duckdns.org/local/beep_pending.wav”}

I hope this will help you or another people with the same question.

Thanks villa.

I tried it exactly as you suggested - putting the file in the www folder and using local. I even converted the MP3 to a WAV file just in case. But still no joy. I tried all the permutations of file:// http:// and https:// as well as the local IP address and the duckdns address, but nothing came through.

I’m seeing the command come through on MQTT Explorere and when I change the payload to {“speak”:“hello”} it works. I don’t see anything on the wallpanel screen, nor can I find any logs within it that might help me solve the problem. So still stuck, I’m afraid.

Hi Graham,

I have made some tests with Google Chrome. For the local access you need to add the HA port, try again:

http://(your ip):(port)/local/beep_pending.wav

I would suggest you to try these urls on your PC browser directly and you will see if the browser reproduce your audio file or not. In my case they are working both http and https. Note that, not all sounds are reproducible. If there is any error maybe you have a permission or an access problem and your files are not reachable from external devices.

Let me know, let’s see we can find the solution… is not easy.

Thanks villa.

Cracked it; never thought about adding the port! With the audio file in the www directory of my HA server, the payload needed to be…

{"audio":"https://my_domain_name.duckdns.org:8123/local/hourlychimebeg.wav"}

It also works with mp3 files and if I put the files in a sub directory to www. :slight_smile:

Using the local IP address does not work! Nor does http://.

And, I still cannot get WallPanel to play if I point it to my separate NAS (an old Western Digital device) although Chrome plays it fine. Not a problem now though as I have at least found a method that works.

The use case for this project was to get a Big Ben chime on the hour. It worked fine with Fully Kiosk but when I switched to WallPanel I lost it (and missed it).

Thanks for your help.

Hi Graham,

Happy to hear. You are welcome. Yes, adding or not the port maybe it depends on your network/router configuration (port forwarding maybe).

Good application! I use mainly for my alarm sounds (arming and pending) and main door open.