Redirect TTS response to media Player

Hi all,

is it possible with HA to redirect the response to e.g. sonos media player?
IMHO it should be possible to define in the pipeline, maybe link it with the microphone (I have a voice assistant in the kitchen with sonos downstairs, and a voice assistant in the bedroom with sonos upstairs).

Or maybe in the time being, with scripts or nodered?

TIA
Mario

PS: I think it is possible in the esphome code of the espbox-s3 …

If you have an ESPHome voice assistant (including the Voice PE) I believe you can direct TTS to a media player in it’s configuration.

Otherwise, you can redirect the output of custom responses.

action: tts.speak
metadata: {}
data:
  cache: true
  media_player_entity_id: media_player.kitchen
  message: This is a test
target:
  entity_id: tts.piper

But this won’t work with built-in sentences.