Cannot retrieve contributors at this time
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
vonage-php-code-snippets/voice/text-to-speech-outbound.phpGo to file
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|require_once __DIR__ . '/../config.php';|
|require_once __DIR__ . '/../vendor/autoload.php';|
|// Building Blocks|
|// 1. Make a Phone Call|
|// 2. Play Text-to-Speech|
|$keypair = new \Vonage\Client\Credentials\Keypair(|
|$client = new \Vonage\Client($keypair);|
|$outboundCall = new \Vonage\Voice\OutboundCall(|
|$response = $client->voice()->createOutboundCall($outboundCall);|