• 从2021年4月起,论坛网上药店重新开放!详情查看
  • 从2023年10月10日开始,华夏中医论坛启用备用域名tcmbe.com 详情查看
  • 关于论坛电子书等资源下载权限的说明!详情查看
  • 论坛官方QQ群,2000人大群,欢迎加入!详情查看

其他 很多人推荐“笈成中医”的中医古籍的文本质量

奇怪 ,那個朗讀,chrome不行,但IE、edge都是好的。

怀疑是那个阅读的函数与chrome有兼容问题。

function speakSelectedWord(){ //alert("!"); //alert(this.nodeName); //alert(this.innerHTML); //alert(window.getSelection().toString()); var seletcText=SE.subWindows[SE.subWindows.length-1].getSelection().toString(); //alert(seletcText); if(seletcText.length<1){ var targetNode=this.parentNode.parentNode.parentNode; seletcText=(targetNode.innerText||targetNode.textContent).split("收合关闭简体朗读").join("").split("收合關閉簡體朗讀").join("").substr(0,200); } //SE.subWindows[SE.subWindows.length-1].alert(seletcText); //return; //alert(new Audio("https://shilao.app.cntv.cn/tts?appkey=default&token=default&format=mp3&voice=xiaoyun&volume=100&speech_rate=0&chunk=true&text="+encodeURI(seletcText)).play()); //new Audio("https://shilao.app.cntv.cn/tts?appkey=default&token=default&format=mp3&voice=xiaoyun&volume=100&speech_rate=0&chunk=true&text="+encodeURI(seletcText)).play(); try{ SE.subWindows[SE.subWindows.length-1].document.documentElement.removeChild(thevoice); }catch(e){ //SE.subWindows[SE.subWindows.length-1].alert(e.description); } thevoice=SE.subWindows[SE.subWindows.length-1].document.createElement("audio"); thevoice.setAttribute("volume",1); thevoice.setAttribute("src","https://shilao.app.cntv.cn/tts?appkey=default&token=default&format=mp3&voice=xiaoyun&volume=100&speech_rate=0&chunk=true&text="+encodeURI(seletcText)); SE.subWindows[SE.subWindows.length-1].document.documentElement.appendChild(thevoice); thevoice.play(); //SE.subWindows[SE.subWindows.length-1].alert(thevoice.play()); //window.open(thevoice.src); }
 
最后编辑:
奇怪 ,那個朗讀,chrome不行,但IE、edge都是好的。

怎么会这样的,我是用谷歌浏览器调试的啊,
只不过版本是2020年初的版本,在本机IIS服务器环境下进行的。

不知道是不是语音引擎服务器有防盗链设置,
有一些弱的防盗链设置在某些浏览器下起作用而另一些浏览器下可能不起作用。


你更新到博客上去了吗,我测试一下看看。
  
 
奇怪 ,那個朗讀,chrome不行,但IE、edge都是好的。

怀疑是那个阅读的函数与chrome有兼容问题。

function speakSelectedWord(){ //alert("!"); //alert(this.nodeName); //alert(this.innerHTML); //alert(window.getSelection().toString()); var seletcText=SE.subWindows[SE.subWindows.length-1].getSelection().toString(); //alert(seletcText); if(seletcText.length<1){ var targetNode=this.parentNode.parentNode.parentNode; seletcText=(targetNode.innerText||targetNode.textContent).split("收合关闭简体朗读").join("").split("收合關閉簡體朗讀").join("").substr(0,200); } //SE.subWindows[SE.subWindows.length-1].alert(seletcText); //return; //alert(new Audio("https://shilao.app.cntv.cn/tts?appkey=default&token=default&format=mp3&voice=xiaoyun&volume=100&speech_rate=0&chunk=true&text="+encodeURI(seletcText)).play()); //new Audio("https://shilao.app.cntv.cn/tts?appkey=default&token=default&format=mp3&voice=xiaoyun&volume=100&speech_rate=0&chunk=true&text="+encodeURI(seletcText)).play(); try{ SE.subWindows[SE.subWindows.length-1].document.documentElement.removeChild(thevoice); }catch(e){ //SE.subWindows[SE.subWindows.length-1].alert(e.description); } thevoice=SE.subWindows[SE.subWindows.length-1].document.createElement("audio"); thevoice.setAttribute("volume",1); thevoice.setAttribute("src","https://shilao.app.cntv.cn/tts?appkey=default&token=default&format=mp3&voice=xiaoyun&volume=100&speech_rate=0&chunk=true&text="+encodeURI(seletcText)); SE.subWindows[SE.subWindows.length-1].document.documentElement.appendChild(thevoice); thevoice.play(); //SE.subWindows[SE.subWindows.length-1].alert(thevoice.play()); //window.open(thevoice.src); }

  不是防盗链就好,代码如果有不兼容的地方可以慢慢修改。

  刚才测试了一下:https://blog.653000.xyz/jc/
  用2020年初版的谷歌浏览器没有问题,可以正常朗读。

  不知道其他用谷歌浏览器的朋友有没有这个问题。
  
 
还有一个,返回音频格式是MP3,浏览器需要支持直接播放这个格式的音频,
比如火狐浏览器原来一直是不支持有版权的MP3格式的,只支持OGG音频。
 
是的,只能说,还行。
实用来讲,梦大改的那个已经很好用了,唯一的是全局搜索时候有20本的限制,不知道能不能改成50本或100本。
  
  找到这个参数的位置了,在common子目录下的objects.js中,已更改为100本:
  
更改系统限制每次最多处理的书籍数量为100本.jpg
 

附件

  • 更改系统限制每次最多处理的书籍数量为100本.rar
    141.5 KB · 查看: 3
奇怪 ,那個朗讀,chrome不行,但IE、edge都是好的。

怀疑是那个阅读的函数与chrome有兼容问题。

function speakSelectedWord(){ //alert("!"); //alert(this.nodeName); //alert(this.innerHTML); //alert(window.getSelection().toString()); var seletcText=SE.subWindows[SE.subWindows.length-1].getSelection().toString(); //alert(seletcText); if(seletcText.length<1){ var targetNode=this.parentNode.parentNode.parentNode; seletcText=(targetNode.innerText||targetNode.textContent).split("收合关闭简体朗读").join("").split("收合關閉簡體朗讀").join("").substr(0,200); } //SE.subWindows[SE.subWindows.length-1].alert(seletcText); //return; //alert(new Audio("https://shilao.app.cntv.cn/tts?appkey=default&token=default&format=mp3&voice=xiaoyun&volume=100&speech_rate=0&chunk=true&text="+encodeURI(seletcText)).play()); //new Audio("https://shilao.app.cntv.cn/tts?appkey=default&token=default&format=mp3&voice=xiaoyun&volume=100&speech_rate=0&chunk=true&text="+encodeURI(seletcText)).play(); try{ SE.subWindows[SE.subWindows.length-1].document.documentElement.removeChild(thevoice); }catch(e){ //SE.subWindows[SE.subWindows.length-1].alert(e.description); } thevoice=SE.subWindows[SE.subWindows.length-1].document.createElement("audio"); thevoice.setAttribute("volume",1); thevoice.setAttribute("src","https://shilao.app.cntv.cn/tts?appkey=default&token=default&format=mp3&voice=xiaoyun&volume=100&speech_rate=0&chunk=true&text="+encodeURI(seletcText)); SE.subWindows[SE.subWindows.length-1].document.documentElement.appendChild(thevoice); thevoice.play(); //SE.subWindows[SE.subWindows.length-1].alert(thevoice.play()); //window.open(thevoice.src); }
  
  电脑上不想升级谷歌浏览器到最新版本,但用2020年老版测试朗读功能没有问题。

  想起手机上可以安装最新版本的谷歌浏览器啊,安装ChromeAPP测试了您提供的网址。
  显示效果和功能实现都接近于完美:选读、段读、繁简互译、多书选定均可正常运行

  另外两款手机浏览器也做了测试:
  UC浏览器不愧是18年历史的老牌移动端浏览器,效果跟Chrome相当。

  而QQ浏览器有些差强人意:不支持子窗口。
  点击搜索按钮后会弹出一张空白页(如此页所示),点击一次后退才会将搜索结果覆盖写入主窗口。
  因此主窗口(搜索设置窗口)不能重复利用,一旦开始输出搜索结果页面,再后退一次就直接退回浏览器默认界面了。
  由于QQ手机浏览器不支持子窗口,所以也无法对选定文本进行朗读,只能读段(前200字),长段后部无法朗读。


  手机页面效果截图:

  
(勾注){集成中医检索系统}手机Chrome浏览器.jpg
 
chrome应该是我自己的问题,我给别人用最新版本chrome测试,也是可以朗读的。
 
不明白搞简繁体转换有什么意义和价值?
 
他这些东西的底本,多半也是从中华医典来的吧。
学中医的读古书还非要看简体版,是对自己的放纵。
 
简繁体转换,惚兮恍兮之间,错误大把
 
他这些东西的底本,多半也是从中华医典来的吧。
学中医的读古书还非要看简体版,是对自己的放纵。
估计是。目前殆知阁的稍微比《中华医典》的好些。
 
笈成站长不是太愿意我们建镜像站,可以理解,考虑将镜像内容删除。
 
最后编辑:
后退
顶部