homeassistant-satellite icon indicating copy to clipboard operation
homeassistant-satellite copied to clipboard

Send audio

Open off112a opened this issue 1 year ago • 6 comments

Hi,

Is it possible to send a wav file to play on the the satellite, like a doorbell or alarm?

off112a avatar Oct 16 '23 13:10 off112a

The satellite can play feedback (awake / done) sounds as explained in the README, but it cannot play a sound at an arbitrary moment.

IMHO the latter is probably outside the scope of a satellite, it has little to do with voice and there are lots of other ways to do it in HA (MPD or an ssh script are probably the easiest).

chatziko avatar Oct 17 '23 11:10 chatziko

The one use case I can think of for this is I have an intent "Ask Google {question}" for crap like "how tall is this celebrity". Google asst returns a .wav that currently I can play on any media player in home assistant. It would be nice to be able to play this wav on the speaker that was asked the question.

collinstork avatar Oct 18 '23 15:10 collinstork

That should come back in the TTS response though, shouldn't it @collinstork ?

synesthesiam avatar Oct 18 '23 19:10 synesthesiam

It does for some, but I believe that for some responses, google returns html instead of plain text so for this

service: google_assistant_sdk.send_text_command
data:
  command: how tall is mark hamill
  media_player: media_player.living_room

the response is

  responses:
  - text: null

but the audio response is still returned & played thru the media player specified.

collinstork avatar Oct 18 '23 21:10 collinstork

+1 satellites would be useful if they were media players in HA Thanks

Scags104 avatar Nov 08 '23 19:11 Scags104

Yes, since having the mic/speaker as a satellite, it would be nice to use TTS as an automation and have it played on the satellite speaker since it is there.

rbaugh avatar Nov 12 '23 20:11 rbaugh