mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Document TTS path (#16333)
This commit is contained in:
parent
d94c7e2a48
commit
ab3cf82773
@ -162,6 +162,7 @@ The return code is 200 if the file is generated. The message body will contain a
|
||||
|
||||
```json
|
||||
{
|
||||
"path": "/api/tts_proxy/265944c108cbb00b2a621be5930513e03a0bb2cd_en_-_demo.mp3",
|
||||
"url": "http://127.0.0.1:8123/api/tts_proxy/265944c108cbb00b2a621be5930513e03a0bb2cd_en_-_demo.mp3"
|
||||
}
|
||||
```
|
||||
@ -169,7 +170,7 @@ The return code is 200 if the file is generated. The message body will contain a
|
||||
Sample `curl` command:
|
||||
|
||||
```bash
|
||||
$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
||||
$ curl -X POST -H "Authorization: Bearer <ACCESS TOKEN>" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"message": "I am speaking now", "platform": "amazon_polly"}' \
|
||||
http://localhost:8123/api/tts_get_url
|
||||
|
Loading…
x
Reference in New Issue
Block a user