Jump to content

Recommended Posts

MARY TTS is an open-source, multilingual text-to-speech synthesis system written in pure java.

https://github.com/marytts/marytts

 

I installed Mary TTS (version 5.1.2) on my Windows (and Linux computers).

I started the Mary TTS server and the Mary TTS client, and I did some trials with text to audio conversion in the GUI window (its great).

I would like to use Mary TTS on my website to read text aloud, where a user can add a text into the input field and generate the output like in the GUI window, without using the java client.

 

For example:

<input type="text" id="text">
<button onclick="play('text');">Speak it</button>

<script>
function play(id){
    var text = document.getElementById(id).value;
    var a = new Audio(text);
        a.play();
    }
</script>

Just to get started.. I can't realize how to do that in HTML/JavaScript and PHP?

Link to comment
https://forums.phpfreaks.com/topic/296464-text-to-speech/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.