简体   繁体   English

如何使meSpeak.js读取特殊字符?

[英]How to make meSpeak.js read special characters?

I would like to use mespeak.js script (based on speak.js based on espeak) for text-to-speech - which has a czech voice file -, but for some reason it skips czech special characters like ě, š, č, ř, ž and reads only the rest. 我想使用mespeak.js脚本 (基于基于espeak的talk.js)进行文本转语音(具有捷克语语音文件),但是由于某些原因,它会跳过诸如ě,š,č, ř,ž和仅读取其余部分。

As espeak on Windows reads them correctly, I tried to compile a new voice file (cs.json), but the problem persists. 当Windows上的espeak正确读取它们时,我尝试编译一个新的语音文件(cs.json),但问题仍然存在。

Thanks! 谢谢!

I don't know what those characters sound like, but your best bet might be to try to approximate the closest english sounding character combination. 我不知道这些字符听起来像什么,但最好的选择是尝试近似最接近英语的发音字符组合。

For instance, if š sounds like sh in English (not saying it does) then just replace all instances of š with sh. 例如,如果š在英语中听起来像sh (没有说出来),则只需将sh的所有实例替换为sh。

使用此电子口语修改而不是Mespeak可能是更好的方法: http ://eeejay.github.io/espeak/emscripten/espeak.html(演示)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM