Sonos A PHP library for interacting with Sonos speakers

Getting Started

Usage

Controllers

Services

Fun Stuff

Text To Speech

View the API Documentation for this class

The TextToSpeech class is powered by duncan3dc/speaker.

use duncan3dc\Speaker\Providers\GoogleProvider;

$track = new TextToSpeech("Testing, testing, 123", $directory, new GoogleProvider);

Once it’s been created, it can be used exactly like any other track, or as an announcement.