PHP Classes

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

Recommend this page to a friend!
  All requests RSS feed  >  What is the best PHP text to speech c...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

What is the best PHP text to speech class?

A request is featured when there is no good recommended package on the site when it is posted. Edit

Picture of Johan4849 by Johan4849 - 7 years ago (2016-05-12)

Speak text on Web page

This request is clear and relevant.
This request is not clear or is not relevant.

+3

I want the user to edit a text box on a Web page and then let it speak the text.

Ask clarification

1 Recommendation

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

This recommendation solves the problem.
This recommendation does not solve the problem.

0

Picture of Manuel Lemos by Manuel Lemos Reputation 23625 - 7 years ago (2016-05-15) Comment

There is this class that relies on Google Translate but I am not sure if it still works because Google added some parameters to make it more difficult for scripts to scrape it.

Maybe the author can fix it or somebody can provide a solution based on an alternative API. There are free APIs like voicerss or ispeech that could be used.

  • 2 Comments
  • 1. Picture of Pham Anh Tuan by Pham Anh Tuan - 7 years ago (2016-06-19) Reply

    this package doesn't work any more

  • 2. Picture of John by John - 2 years ago (2021-11-28) in reply to comment 1 by Pham Anh Tuan Reply

    Replace Download Url to translate.google.com/translate_tts?ie=UTF-8&tl={$this->lang}&client=tw-ob&q={$text}&total={$this->wordCount}&idx=0&textlen={$this->textLen}

    will work!


Recommend package
: 
: