Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2024-06-15 (Yesterday) | | 50% | | Total: 3,198 This week: 3 | | All time: 1,109 This week: 25 |
|
Description | | Author |
This class can generate speech audio to say a given text.
It can send a HTTP request to the Google Translate API to say a given text.
The class downloads the speech audio in MP3 format and stores it in a given file. | |
|
|
Innovation award
Nominee: 3x |
|
Recommendations
Example
<?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>
|
Details
PHP_Text2Speech
This class can generate speech audio to say a given text.
It can send a HTTP request to the Google Translate API to say a given text.
The class downloads the speech audio in MP3 format and stores it in a given file.
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.