* 朗读直播评论酱

用声音朗读直播网站的新到来评论。

< 脚本* 朗读直播评论酱的反馈

提问/评论

§
发表于:2020-02-24

グーグル翻訳者

私の提案: 翻訳するオプションを入れていただけますか? タイプ: 言語の検出=日本語、ポルトガル語、英語、スペイン語など...

My sugestion: Could you put the option to translate? Type: Detect Language = Japanese, Portuguese, English, Spanish and etc

knoa作者
§
发表于:2020-02-24

it could have. you mean, if you use the translation feature on Chrome browser while my script speaking, you (unexpectedly) get original text read, right?

If you can read and edit the code, reverse the comment out below to add setTimeout delay on speaking.

before:

            if(read) return speaker.request(content.textContent, read[0], content);
//          if(read) return setTimeout(() => {speaker.request(content.textContent, read[0], content);}, 1000);
            if(site.addedNodes.ignore.some(i => i[1](n))) return;
            speaker.request(content.textContent, UNKNOWNPITCHRATIO, content);
//          setTimeout(() => {speaker.request(content.textContent, UNKNOWNPITCHRATIO, content)}, 1000);

after:

//          if(read) return speaker.request(content.textContent, read[0], content);
            if(read) return setTimeout(() => {speaker.request(content.textContent, read[0], content);}, 1000);
            if(site.addedNodes.ignore.some(i => i[1](n))) return;
//          speaker.request(content.textContent, UNKNOWNPITCHRATIO, content);
            setTimeout(() => {speaker.request(content.textContent, UNKNOWNPITCHRATIO, content)}, 1000);

I know it's not a good solution... X-D

§
发表于:2020-02-24

@knoa disse: it could have. you mean, if you use the translation feature on Chrome browser while my script speaking, you (unexpectedly) get original text read, right?

If you can read and edit the code, reverse the comment out below to add setTimeout delay on speaking.

before:

            if(read) return speaker.request(content.textContent, read[0], content);
//          if(read) return setTimeout(() => {speaker.request(content.textContent, read[0], content);}, 1000);
            if(site.addedNodes.ignore.some(i => i[1](n))) return;
            speaker.request(content.textContent, UNKNOWNPITCHRATIO, content);
//          setTimeout(() => {speaker.request(content.textContent, UNKNOWNPITCHRATIO, content)}, 1000);

after:

//          if(read) return speaker.request(content.textContent, read[0], content);
            if(read) return setTimeout(() => {speaker.request(content.textContent, read[0], content);}, 1000);
            if(site.addedNodes.ignore.some(i => i[1](n))) return;
//          speaker.request(content.textContent, UNKNOWNPITCHRATIO, content);
            setTimeout(() => {speaker.request(content.textContent, UNKNOWNPITCHRATIO, content)}, 1000);

I know it's not a good solution... X-D

I don't understand scripting, but I was wondering if you can put some code for it to translate from other languages to the native language in the chat?

发表回复

登录(不可用)以发表回复。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址