Comments (7)
So far this is working beautifully. Thanks so much for taking the time to improve the package. I will let you know if I notice any other issues.
from react-speech-recognition.
I've made some changes in #2 that should alleviate these issues. Of most relevance to you will be the new startListening
and abortListening
callbacks. The Web Speech API wrapper should be more resilient against re-renders now too.
Let me know if upgrading to 1.0.3 improves things for you!
from react-speech-recognition.
Everything looks great but I'll point out two minor issues I've seen.
-
The SpeechRecognition still listens when rendered. In my top-level component I call abortListening() and the Web Speech API stops listening. However, it still runs for a half second until componentWillMount gets called. Maybe if by default listening is set to false this will solve that issue. And then on the client side we simply call startListening(). Currently, it seems that the user is always being recorded
The Web Speech API wrapper is more resilient against re-renders now
. However if I am "listening" and I unmount the component I get this warning:
Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the SpeechRecognition component.
from react-speech-recognition.
-
Ah, I was hoping it wouldn't get a chance to record anything in that short space of time. My reason for having it on by default was because I figured most people would want a "plug and play" component that didn't require any initialisation. However, I see the need for your use case to be supported. I'm going to look into making the default state configurable.
-
This shouldn't be hard to fix - I'll try to deal with this as well.
from react-speech-recognition.
-
Thanks so much. Making default state configurable is really helpful. I owe you one.
-
Thanks again
Looking forward to the next release
from react-speech-recognition.
-
See #3 for how to set the API to off by default in 1.0.4.
-
Should also be resolved by those changes.
from react-speech-recognition.
THANKS!
Working great
from react-speech-recognition.
Related Issues (20)
- [SpeechlyClient] Websocket closed due to error
- `AbortListening` is not a function when using the Azure Polyfill HOT 1
- Detect unrecognizable words in transcript
- Race condition between stopListening() and command handling on Chrome Mobile HOT 1
- (browserSupportsContinuousListening): does not exist on useSpeechRecognition 😬
- regeneratorRuntime is not defined when using react with vite HOT 7
- Update/Remove Speechly Support
- Final transcript is always empty
- It is not working in mozilla firefox
- Hi it not working in mobile Chrome and some desktop HOT 3
- "onEnd" does not work properly. HOT 1
- regeneratorRuntime is not defined HOT 9
- Issue in Commands
- Can you create a plane JavaScript library for this?
- requesting Speech to text for Tamil language
- Reference Error
- Uncaught (in promise) TypeError: Cannot read properties of null
- not working after deployment HOT 2
- browserSupportsSpeechRecognition returns true on Chrome iOS when it should be false
- startListening is not a function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-speech-recognition.