JamesBrill/react-speech-recognition

Support multiple language

hiren3897 opened this issue · 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?

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.