react-speech-recognition icon indicating copy to clipboard operation
react-speech-recognition copied to clipboard

Support multiple language

Open hiren3897 opened this issue 2 years ago • 1 comments

Hello @JamesBrill,

Thanks for this best library

Does it support multiple language at the same time ?

for example the user can speak in French or English or Spanish.

Currently, if i see the docs we can pass only one specific langauge in the startListening

is it already doable or needs some work?

hiren3897 avatar Apr 24 '23 13:04 hiren3897

I think it's not possible. Because lib just use browser API's. And when you start listening, you should paste one language. So if you put for example 'en' as language and start to speak on French, then you'll get a mass of crap. It's api limitation. You could try deepgram for this. deepgram use AI for recognition. And of course they'll charge you for usage, but they give you a huge amount for test purposes. For serious projects, I think it's reasonable to use side services that will give you a huge benefit. Just try it if you're really interested in.

overkektus avatar Aug 18 '23 17:08 overkektus