Play

Play a sound file.

Parameters

Property Type Description
Required Properties
sound_url string URL of the .wav or .mp3 file to play.
Optional Properties
on_done string Callback URL to be sent a Done callback request when playback is completed

Example

{
    "name": "Play",
    "sound_url": "http://myserver.com/hello_world.mp3",
    "on_done": "http://myserver.com/helloworlddone"
}

Done callback

The done callback URL is requested when a Play 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.