最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to download speech (audio) created from text using Text-to-speech responsivevoice.js? - Stack Overflow

programmeradmin3浏览0评论

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.

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.

Share Improve this question edited Apr 30, 2015 at 20:32 mhlavacka asked Apr 30, 2015 at 20:20 mhlavackamhlavacka 70112 silver badges25 bronze badges 2
  • This is an interesting question. Have a look here, is this sort of what you're after? stackoverflow./questions/22560413/… – dmgig Commented Apr 30, 2015 at 20:26
  • Thanks, seems really interesting. Going to dig into it.. – mhlavacka Commented Apr 30, 2015 at 20:35
Add a ment  | 

1 Answer 1

Reset to default 4

Use URL like: http://responsivevoice/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/responsivevoice/getvoice.php?t='+ text +'&tl=en-US';" id="a">Play</a>

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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论