charliegerard / speak-extension

Chrome extension with speech-to-text functionality to make your presentations more accessible with live captions
GNU General Public License v3.0
75 stars 8 forks source link

Switch language immediately while recognizing #4

Open teramotodaiki opened 4 years ago

teramotodaiki commented 4 years ago

Thank you for nice extension. :)

If we can switch languages immediately, this extension will become more useful.

As far as I read, recognition.lang is not updated expect init. It looks clitical because init function is called only initialization. So now maybe it never switch language of recognition.

I forked this repo and insert only 1 line to content.js, it works fine.

Here is all diff↓ https://github.com/teramotodaiki/speak-extension/commit/e3fae5e2762319879762c8c606330391907843eb

I could make pull request if you want. Thank you.