Say
Use text to speech to speak some text.
Parameters
Property |
Type |
Description |
text |
string |
The text to say. |
on_done |
string |
Callback URL to be sent a Done callback
request when finished speaking. |
Example
{
"name": "Say",
"text": "thank you for calling",
"on_done": "http://myserver.com/saydone"
}
Done callback
The done callback URL is requested when a Say command finishes.
Request
method: | POST |
content-type: | application/json |
The request body contains a JSON object with the following properties:
Property |
Type |
Description |
account_id |
string |
The ID of your Sift API account. |
connection_id |
string |
ID of the Connection. |
Example
{
"account_id": "372718353dcf4d16",
"connection_id": "6f5704748865267a"
}
Response
content-type: | application/json |
The response body may optionally contain a JSON object with the following properties.
Property |
Type |
Description |
Optional Properties |
routine |
list |
A new routine list to run
on the connection referenced by the
connection_id property of the request. |