我非常频繁地使用iSpeech,我想知道您是否可以创建一个书签、脚本或附件,以便将剪贴板或选定的文本自动发送到ispeech http://www.ispeech.org,或者提供一些具有类似功能的其他脚本、加载项、书签的示例,以便我自己创建它。
用法示例:
选择文本>右键单击>发送到iSpeech选择文本>单击Bookmarklet >发送到iSpeech
看起来他们也有一个API以及http://www.ispeech.org/api
。
更新:我已经大大接近了。我想我可以使用内置在firefox中的searchplugin来实现这个目的。
下面是链接的一个示例:
http://www.ispeech.org/convert.text.php?type=text&voice=usenglishmale2&voiceSpeed=0&text=Enter+Text+to+Speak+Here
现在,我要做的就是把它格式化为一个搜索插件,它应该做trick...maybe。
发布于 2011-04-17 09:28:26
用书签分类:
javascript:q%20=%20""%20+%20(window.getSelection%20?%20window.getSelection()%20:%20document.getSelection%20?%20document.getSelection()%20:%20document.selection.createRange().text);%20if%20(!q)%20q%20=%20prompt("You%20didn't%20select%20any%20text.%20%20Enter%20a%20search%20phrase:",%20"");%20if%20(q!=null)%20location="http://www.ispeech.org/convert.text.php?type=text&voice=usenglishmale2&voiceSpeed=0&text="%20+%20escape(q).replace(/%20/g,%20"+");%20void%200发布于 2011-04-16 22:46:07
很近,但没有雪茄。搜索插件UI所传递的{searchTerms}似乎存在字符限制。
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>iSheech</ShortName>
<Description>iSpeech Convert Text</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16"></Image>
<Url type="application/x-suggestions+json" method="GET"
template="http://www.ispeech.org/convert.text.php={searchTerms}" />
<Url type="text/html" method="GET" template="http://www.ispeech.org/convert.text.php?type=text&voice=usenglishmale2&voiceSpeed=0&={searchTerms}">
<Param name="text" value="{searchTerms}"/>
</Url>
<SearchForm>http://www.ispeech.org/convert.text.php</SearchForm>
</SearchPlugin>https://stackoverflow.com/questions/5686398
复制相似问题