I have this in home assistant configuration.yaml:
rest_command:
rhasspy_speak:
url: 'http://192.168.0.130:12101/api/text-to-speech'
method: 'POST'
content_type: 'text/plain'
payload: "{{ payload }}"
The IP address is correct. I have this in an automation:
service: rest_command.rhasspy_speak
data:
payload_template: >-
Today is {{ now().strftime("%A") }} the {{ now().strftime("%-d")}} {{
now().strftime("%B") }} {{ now().strftime("%y") }}
The action is triggered by a rhasspy sentence and produces this trace:
Executed: July 14, 2022 at 17:49:53
Result:
params:
domain: rest_command
service: rhasspy_speak
service_data:
payload_template: Today is Thursday the 14 July 2022
target: {}
running_script: false
limit: 10
The trace shows that the payload was sent to rhasspy, but the payload is not spoken by rhasspy. If I paste the payload into the NanoTTS Speak field, rhasspy will say the sentence. Where is this going wrong? Thanks for any help.