PHP Classes

PHP Convert Text to Audio: Spell text as MP3 audio using Google Translate

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 431 This week: 1All time: 6,308 This week: 560Up
Version License PHP version Categories
text-reader 1.0Freeware5PHP 5, Text processing, Web services, A...
Description 

Author

This class can spell text as MP3 audio using Google Translate.

It can take a given text string in an idiom and generates a MP3 audio stream using Google translate.

The class generates HTML with JavaScript to play the converted text in a Web page.

The code and comments in Italian. In Italian:

textReader è una classe PHP per convertire una stringa in un file musicale e riprodurlo senza nemmeno occupare spazio sul server perché il file viene convertito in base64

Picture of Gabriele Gabry Princiotta
Name: Gabriele Gabry ... <contact>
Classes: 1 package by
Country: Italy Italy
Age: ???
All time rank: 3445135 in Italy Italy
Week rank: 411 Up18 in Italy Italy Up

Example

<!doctype html>
<html>
<body>
<center>
<form method="post">
<h1>Text Reader</h1>
<textarea name="testo_da_leggere"></textarea><br />
<input type="text" name="lingua_testo" placeholder="Codice lingua" /><br />
<input type="submit" value="Leggi" />
</form>
</center>
<?php
include "text-reader.php";
$testo_da_leggere = ((isset($_POST['testo_da_leggere'])) ? $_POST['testo_da_leggere'] : "Inserisci un testo da leggere");
$lingua_testo = ((isset($_POST['lingua_testo'])) ? $_POST['lingua_testo'] : "it");
$textReader->Read($testo_da_leggere,$lingua_testo);
?>
</body>
</html>


  Files folder image Files  
File Role Description
Plain text file text-reader-example.php Example Un file di esempio
Plain text file text_reader.php Class Il file della classe

 Version Control Unique User Downloads Download Rankings  
 0%
Total:431
This week:1
All time:6,308
This week:560Up