PHP Classes

text 2 speech

Recommend this page to a friend!

      PHP Text to Speech Class  >  All threads  >  text 2 speech  >  (Un) Subscribe thread alerts  
Subject:text 2 speech
Summary:usefull package
Messages:8
Author:Frederik Yssing
Date:2013-06-14 22:04:32
Update:2013-06-21 21:53:45
 

  1. text 2 speech   Reply   Report abuse  
Picture of Frederik Yssing Frederik Yssing - 2013-06-14 22:04:32
this could prove to be very usefull.

how well is other languages supported?

  2. Re: text 2 speech   Reply   Report abuse  
Picture of Radovan Janjic Radovan Janjic - 2013-06-15 21:40:24 - In reply to message 1 from Frederik Yssing
You can give it a try like this ;)

<?php

/**
* PHP_Text2Speech Class example
*/

include 'PHP_Text2Speech.class.php';

$t2s = new PHP_Text2Speech;

$t2s->lang = 'de';
?>

<audio controls="controls" autoplay="autoplay">
<source src="<?php echo $t2s->speak('Hallo, wie geht\'s.'); ?>" type="audio/mp3" />
</audio>

  3. Re: text 2 speech   Reply   Report abuse  
Picture of chuck tharp chuck tharp - 2013-06-16 02:53:14 - In reply to message 2 from Radovan Janjic
I see it briefly display the controls. but then it goes away quickly with out saying anything.. I will contiue to figure out what my problem is. Has anyone else have this work. maybe a dependency or something that is also required to run it.

  4. Re: text 2 speech   Reply   Report abuse  
Picture of Michal Lulco Michal Lulco - 2013-06-17 10:30:27 - In reply to message 3 from chuck tharp
maybe it is browser issue, it doesn't work for example in opera..
try firefox or chrome

  5. Re: text 2 speech   Reply   Report abuse  
Picture of Terry Woody Terry Woody - 2013-06-20 13:13:31 - In reply to message 3 from chuck tharp
Same issue at first.

The script created a folder titled "audio" automatically. This folder had no permissions assigned to it. I set mine manually to 0755 and started working.

  6. Re: text 2 speech   Reply   Report abuse  
Picture of chuck tharp chuck tharp - 2013-06-21 01:34:55 - In reply to message 5 from Terry Woody
Yep permissions, makes me humble.
Works as described, now what can I do with it.
Will see If I cant make the program call me on my phone.


  7. Re: text 2 speech   Reply   Report abuse  
Picture of Radovan Janjic Radovan Janjic - 2013-06-21 21:34:01 - In reply to message 6 from chuck tharp
Hi,

I've did some fixes so you shouldn't have any problems now.

Are you maybe using proxy?

  8. Re: text 2 speech   Reply   Report abuse  
Picture of Radovan Janjic Radovan Janjic - 2013-06-21 21:53:45 - In reply to message 6 from chuck tharp
And yes, if you want it to call you, you will have to give the program your phone number, otherwise it wan't work ;)