Greasy Fork is available in English.

wsmud_pluginss

武神传说 MUD 武神脚本 武神传说 脚本 qq群367657589

< Commentaires sur wsmud_pluginss

Question / commentaire

§
Posté le: 06/08/2020
Édité le: 06/08/2020

TTS相关:发现代码引用了百度TTS Api,在百度繁忙的时候会直接无声音。尝试利用SpeechSynthesisUtterance做了本地合成,效果不错,希望能追加进代码之中作为备选方案使用。
平台:Win10 Chrome v82

§
Posté le: 06/08/2020
Édité le: 06/08/2020

不太优美的实现范例:
playtts: function (text) {
var msg = new SpeechSynthesisUtterance(text);
msg.lang = 'zh';
msg.voice = speechSynthesis.getVoices().filter(function(voice) {
return voice.name == 'Whisper';
})[0];
speechSynthesis.speak(msg);
// let url = ``;
// FakerTTS.playurl(url);
}

knvaAuteur
§
Posté le: 07/08/2020

已合并

Poster une réponse

Connectez-vous pour poster une réponse.