Change audio file IP tackle to make use of DNS?
I would like to alter the IP tackle on media clips to incorporate a website title as an alternative of a uncooked IP tackle. Here’s the state of affairs:
- I’ve a number of small media participant (speaker) which use ESPHome to play bulletins when occasions occur in my summer time dwelling (I’ll name it “native”).
- The bulletins are generated by the Google Text-To-Speech media module.
- I need to place one of many audio system in my winter dwelling, roughly 650 miles away, and have it play the bulletins there (I’ll name it “distant”).
- When an announcement is… introduced, Home Assistant sends the textual content to Google and receives an MP3 file containing the speech in return. This file is written to storage on the native HA server.
- HA then sends a URL containing the native IP tackle and path to the MP3 file to the media participant, in order that the participant can fetch and play it. I poked a gap within the distant router’s firewall for this, and that half works properly. The URL seems kind of like http://10.10.0.33/path/speechfile.mp3.
- Because the distant media participant is on a distinct community, it will possibly’t get to the file to fetch and play it. The media participant tries anyway, after which it crashes and reboots.
I have already got a firewall rule on the native router to permit entry to Home Assistant. So, if I can exchange the tackle (“10.10.0.33” within the above instance) with the server area title (e.g., “www.myhomeassistant.com”), then the distant media participant can be in a position fetch the MP3 file and play it. Problem is, I don’t know of a means to try this.
Does this all make sense? How can I get Home Assistant to make use of my area title as an alternative of the native LAN tackle?
1 put up – 1 participant
HI-FI News
by way of Home Assistant Community – Latest subjects https://ift.tt/myFGn7x
December 1, 2023 at 01:59AM
-
Product on sale
Audiophile Vinyl Records Cleaning BundleOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Product on sale
Easy Start Vinyl Records Cleaning KitOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Vinyl Records Cleaner Easy Groove Concentrate€34.95 incl. VAT -
Easy Groove Super Set€199.00 incl. VAT -
Easy Groove Enzycaster – vinyl records prewash cleaner€34.95 incl. VAT -
Easy Groove Extreme MK. II- vinyl records prewash cleaner€45.00 incl. VAT -
Vinyl Records Cleaner – Easy Groove Virgin Concentrate€35.00 incl. VAT -
Easy Groove Spray&Wipe vinyl records cleaner€34.95 incl. VAT








