You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To support more than just Chrome, I'm using "@speechly/speech-recognition-polyfill."
nonetheless, the Arabic language is not supported as a result.
So, my goal is to only apply the polyfill if the language is "en," otherwise, I want to delete it.
something like this:
useEffect(()=>{if(lang!=="ar"){constSpeechlySpeechRecognition=createSpeechlySpeechRecognition(speechlyId);SpeechRecognition.applyPolyfill(SpeechlySpeechRecognition);}else{SpeechRecognition.removePolyfill();// <=== is there a function to stop or removes the polyfill ??}},[lang]);
The text was updated successfully, but these errors were encountered:
@YoussefZidan Thanks for raising this - this seems like a legitimate use case to me. That feature now exists in 3.10.0 - let me know how it works for you.
@YoussefZidan Thanks for raising this - this seems like a legitimate use case to me. That feature now exists in 3.10.0 - let me know how it works for you.
YoussefZidan
changed the title
Removing Polyfill if the language is not supported
[Solved!] Removing Polyfill if the language is not supported
Oct 20, 2022
To support more than just Chrome, I'm using "@speechly/speech-recognition-polyfill."
nonetheless, the Arabic language is not supported as a result.
So, my goal is to only apply the polyfill if the language is "en," otherwise, I want to delete it.
something like this:
The text was updated successfully, but these errors were encountered: