Assist text to speech output

Add an option (under settings for Assist?) to enable text-to-speech output for assist.

I presently use a custom intent as follows:

conversation:
  intents:
    MyGetTemp:
      - "What is the temperature in [the] {area}"
      - "Tell me [the] temperature in [the] {area}"
      - "How hot is it in [the] {area}"
intent_script:
  MyGetTemp:
    action:
      service: "tts.cloud_say"
      data:
        options:
          gender: male
        language: en-AU
        cache: false
        entity_id: "media_player.upmpd_pizerow1_upnp_av"
        message: >
          {% set mydict = { 'living_room': 'living_room_6062_temperature', 'kitchen': 'kitchen_64e0_temperature', 'bedroom': 'bedroom_temperature', 'bathroom': 'bathroom_541d_temperature' } %}
          {% set mysensor = mydict.get(area,'unavailable') %}
          {% if mysensor == 'unavailable' %} 
            The temperature in the {{area}} is not available at present
          {% else %}
            It is {{ states('sensor.' + mysensor) | int }} °C
          {% endif %}
    speech:
      text: >
          {% set mydict = { 'living_room': 'living_room_6062_temperature', 'kitchen': 'kitchen_64e0_temperature', 'bedroom': 'bedroom_temperature', 'bathroom': 'bathroom_541d_temperature' } %}
          {% set mysensor = mydict.get(area,'unavailable') %}
          {% if mysensor == 'unavailable' %} 
            The temperature in the {{area}} is not available at present
          {% else %}
            It is {{ states('sensor.' + mysensor) | int }} °C
          {% endif %}

So that the response to a query about the Temperature is output using tts.cloud_say on a Pi-based media player, as well as in text (the somewhat inaccurately named “speech” action).

You could also provide spoken output if the assist query is entered using a microphone rather than as text (i.e. audio in: audio out).

Regards,

I agree that a an option to enable text-to-speech output for assist would be a great feature. Thank you for posting. I was able to use a modified version of your code to provide my desired Assist responses as spoken output on my smart watch.

Absolutely, I would like to output the reply of the Assist tts to my Sonos Media player, even if I use assit with my computer, or others device.

If you like use media player now you have the posibility.

If you want use movile phone you must use notification with high priority

But will be better if we would can use the assist itself. Better integration and same voice for all

Hello, that is in Developer tools? If so it is not permanent just a one time thing. Or is there another place where you made this change permanent?

Thanks