PHP Classes

PHP TTS Solution with PHP Text to Speech Class: Generate speech audio to say a given text

Recommend this page to a friend!

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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.

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>



  Author Author  
Picture of Radovan Janjic
Name: Radovan Janjic is available for providing paid consulting. Contact Radovan Janjic .
Classes: 14 packages by
Country: Serbia Serbia
Age: 35
All time rank: 2432 in Serbia Serbia
Week rank: 44 Up1 in Serbia Serbia Up
Innovation award
Innovation award
Nominee: 3x

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.


  Classes of Radovan Janjic  >  PHP TTS Solution with PHP Text to Speech Class  >  Download Download .zip .tar.gz  >  Support forum Support forum (5)  >  Blog Blog  
Name: PHP TTS Solution with PHP Text to Speech Class
Base name: php-text-to-speech
Description: Generate speech audio to say a given text
Version: 1.8
PHP version: 4.3
License: GNU General Public License (GPL)
All time users: 3171 users
All time rank: 1128
Week users: 0 users
Week rank: 95 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Text processing Manipulating and validating text data View top rated classes
Group folder image Audio Voice and music data generation and manipulation View top rated classes


  Recommendations  

What is the best PHP text to speech class?
Convert text to spech

What is the best PHP text to speech class?
Speak text on Web page


  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Sufficient (75%) Good (80%) - Good (85%) - - Not sure (54%) 2023
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example script
Plain text file PHP_Text2Speech.class.php Class Class file
Accessible without login Plain text file README.md Data Auxiliary data

Install with Composer Install with Composer - Download Download all files: php-text-to-speech.tar.gz php-text-to-speech.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example script
Plain text file PHP_Text2Speech.class.php Class Class file
Accessible without login Plain text file README.md Data Auxiliary data

Install with Composer Install with Composer - Download Download all files: php-text-to-speech.tar.gz php-text-to-speech.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.