Change audio file IP tackle to make use of DNS?

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:

  1. 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”).
  2. The bulletins are generated by the Google Text-To-Speech media module.
  3. 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”).
  4. 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.
  5. 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.
  6. 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

Read full subject

HI-FI News

by way of Home Assistant Community – Latest subjects https://ift.tt/myFGn7x

December 1, 2023 at 01:59AM