Skip to content

KAZOO Support Channels

This documentation is curated by 2600Hz as part of the KAZOO open source project. Join our community forums here for peer support. Only features in the docs.2600hz.com/supported space are included as part of our 2600Hz Support Services plan.

Play#

It is pretty easy to play files, either hosted in your account or accessible via a URI.

Play sample#

The initial Kazoo JSON to play a file could look something like:

<?php

header('content-type:application/json');

?>

{
    "module": "play",
    "data": {
        "id": "media_id"
    },
    "children": {
        "_": {
            "module": "play",
            "data":{
                "id": "http://some.file.server/some/file.mp3"
            },
            "children": {}
        }
    }
}

Here we see two play actions, one that uses a media file hosted by Kazoo and one that fetches the file from an HTTP server.