* Streaming Comment Reader chan

It reads comment text on streaming sites by speech synthesis.

< * Streaming Comment Reader chan 피드백으로 돌아가기

질문/댓글

§
게시: 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?

답글 게시

답글을 게시하려면 로그인하세요.