3

I'm using responsivevoice.js JavaScript library to listen to articles online. It's the best free Text-to-speech I found, better then lots of paid ones I tried, but I need to download the audio as well and I have no idea on how to do that. Any ideas on how could I do that ? Or is there any other good Text-to-speech, with unlimited characters and download capabilities ?

I made a quick demo to better illustrate the situation.

mhlavacka
  • 691
  • 11
  • 25
  • This is an interesting question. Have a look here, is this sort of what you're after? http://stackoverflow.com/questions/22560413/html5-web-audio-convert-audio-buffer-into-wav-file – dmgig Apr 30 '15 at 20:26
  • Thanks, seems really interesting. Going to dig into it.. – mhlavacka Apr 30 '15 at 20:35

1 Answers1

4

Use URL like: http://responsivevoice.org/responsivevoice/getvoice.php?t=Type%20text%20here&tl=en-US

This is the URL responsivevoice.js used to read text. Replace Type%20text%20here with your own text.

<a href="javascript:var text=escape(prompt('Type text here: '));
window.location.href = 'http://responsivevoice.org/responsivevoice/getvoice.php?t='+ text +'&tl=en-US';" id="a">Play</a>

Try it: http://jsfiddle.net/017mfce0/

Hcorg
  • 11,598
  • 3
  • 31
  • 36
  • The license terms for this solution are quite unclear and by accessing the fallback voice generator in that way, anyone is in risk of being blocked by responsivevoice.org. Also, I am assuming that the audio files are generated by a fallback backend (the link is pointing to a php script, so probably no client side JS involved). – auco Apr 02 '17 at 16:06