Voice assistant respond by play wav file

Is it possible to have voice assistant answer a question by playing a .wav file?

I assume I will have to create an automation that triggers when a specific question is said, then the action be play the wav file. I don’t know if it’s possible to play the wave file or if the “Set conversation response” action only takes text input

Has anyone done that before or have any ideas?

Use the media_player.play_media action, this should solve your problem

triggers:
  - trigger: conversation
    command: sound test
conditions: []
actions:
  - set_conversation_response: ""
  - action: media_player.play_media
    metadata: {}
    data:
      media_content_id: /media/local/mau_short.mp3
      media_content_type: music
    target:
      entity_id: media_player.esp32va01

If you need to select an active device, you will have to unify the device and entity names, and then you can use the template

    target:
      entity_id: "{{ 'media_player.'~device_attr(trigger.device_id, 'name')| lower }}"

Thanks @mchk, I gave that a try and got an error. I think home assistant is not seeing my speaker as a media device. The entity type is assist_satellite which i guess is not a media device. If I use the drop down to select a media device in the actions section of the automation, it is not an option. My speaker is a raspberry pi 4, I don’t know if that makes a difference.

Here is the error

Are you using a wyoming satellite? Then you don’t have a media_player entity.
Try using assist_satellite.announce action.
If a more complete answer is required, please provide full details.

I ended up finding this post after you steered me towards the satellite announce and it worked for me