From 79fbe011102382a998d3ca6517c216e2ea189db2 Mon Sep 17 00:00:00 2001 From: Daniel Potts Date: Sun, 17 Mar 2024 16:39:34 +1100 Subject: [PATCH] Function spec example for say_tts --- examples/function/say_tts/README.md | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 examples/function/say_tts/README.md diff --git a/examples/function/say_tts/README.md b/examples/function/say_tts/README.md new file mode 100644 index 0000000..90e5c3d --- /dev/null +++ b/examples/function/say_tts/README.md @@ -0,0 +1,31 @@ +## Objective + +- say_tts will say a message on any text to speech device + +## Function + +### say_tts +```yaml +- spec: + name: say_tts + description: Say message on a text to speech device + parameters: + type: object + properties: + message: + type: string + description: message you want to say + device: + type: string + description: entity_id of media_player tts device + required: + - message + - device + function: + type: script + sequence: + - service: tts.cloud_say + data: + entity_id: "{{device}}" + message: "{{message}}" +```