| Name | Type | Description | Notes |
|---|---|---|---|
| file | string | RL of the audio file to be played to the caller. The URL can be the `recordingUrl` generated from the `RecordUtterance` or `StartRecordCall` PerCL commands or any accessible URL. FreeClimb will respect Cache-Control headers for this file. Use these to limit repeated requests for unchanged audio. If no Cache-Control header is provided, the file will be cached for seven days by default. |
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$json = <<<'JSON'
{
"command": "PlayEarlyMedia",
"file": "string"
}
JSON;
// create an instance of PlayEarlyMedia from a JSON string
$play_early_media = \FreeClimb\Api\ObjectSerializer::deserialize(
json_decode($json),
\FreeClimb\Api\Model\PlayEarlyMedia::class
);