Skip to content

Commit

Permalink
Function spec example for say_tts
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Potts authored and jekalmin committed Mar 24, 2024
1 parent 16e015b commit 79fbe01
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions examples/function/say_tts/README.md
Original file line number Diff line number Diff line change
@@ -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}}"
```

0 comments on commit 79fbe01

Please sign in to comment.