PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Radovan Janjic   PHP Text to Speech Class   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Text to Speech Class
Generate speech audio to say a given text
Author: By
Last change: Update of example.php
Date: 2 months ago
Size: 684 bytes
 

Contents

Class file image Download
<?php

/**
* PHP_Text2Speech Class example
*/

include 'PHP_Text2Speech.class.php';

$t2s = new PHP_Text2Speech;

?>
<audio controls="controls" autoplay="autoplay">
  <source src="<?php echo $t2s->speak('Facebook is a very large social network where you can find a lot of people. You can also find there a community of PHP Classes site users.
If you are a member of Facebook you can join the PHP Classes site users community and follow the site activity updates that are posted on the site page wall.
Please click on the Like button in the PHP Classes site community page at Facebook so we can grow the community of site users at Facebook.'
); ?>" type="audio/mp3" />
</audio>