Skip to content

Instantly share code, notes, and snippets.

@caseysoftware
Last active December 19, 2015 13:39
Show Gist options
  • Select an option

  • Save caseysoftware/5963774 to your computer and use it in GitHub Desktop.

Select an option

Save caseysoftware/5963774 to your computer and use it in GitHub Desktop.
A list of acronyms you say by pronouncing, each run through the Twilio TTS engines.
<?php
include 'Services/Twilio.php';
/**
* POTUS is the oddity
*/
$items = array('NASA', 'NATO', 'AIDS', 'SCUBA', 'laser', 'POTUS');
$response = new Services_Twilio_Twiml();
foreach($items as $item) {
$response->say($item);
$response->say($item, array('voice' => 'woman'));
$response->say($item, array('voice' => 'alice'));
}
print $response;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment