PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 431 All time: 6,313 This week: 206Up
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: 3448135 in Italy Italy
Week rank: 180 Up7 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 (2)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:431
This week:0
All time:6,313
This week:206Up