This library provides a simple way to create a streaming audio skill for the Amazon Alexa platform.
The preferred method of installation is via Packagist and Composer. Run the following command to install the package and add it as a requirement to your project's composer.json
:
composer require ampedradio/alexa-streaming-php
Coming soon. Stay tuned.
use AmpedRadio\AlexaStreamingPHP\AlexaStreaming;
use AmpedRadio\AlexaStreamingPHP\AlexaStreamingConfig;
use Ramsey\Uuid\Uuid;
$config = new AlexaStreamingConfig();
$config->app_id = 'amzn1.ask.skill.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';
$config->stream_url = 'https://<stream-url>';
$config->title = 'Amped Radio';
$config->subtitle = 'Fueling The Original Social Network';
$config->art = 'https://<domain>/art.png';
$config->background_image = 'https://<domain>/background.png';
$config->stream_token = Uuid::uuid4();
$alexa = new AlexaStreaming($config);
$response = $alexa->execute();
header('Content-Type: application/json');
echo json_encode($response);
- Created by Bill Condo
- Logo by Caneco