innFactory / react-native-dialogflow

A React-Native Bridge for the Google Dialogflow (API.AI) SDK
https://innfactory.de/softwareentwicklung/ui-ux/sprachsteuerung-mit-api-ai-in-einer-react-native-app/
MIT License
200 stars 64 forks source link

Is there a reason the event handler for partial recognition was left out? #33

Closed joerex closed 6 years ago

joerex commented 6 years ago

The speech subscription only has handlers for error and final result. Why not partial update as well?

spoeck commented 6 years ago

yes, because the partial updates are only available in ios. For android I use a different speech-to-text lib which hasn't a partial update. Now you can use it for ios. I just check if onUpdate is undefined before so onUpdate is optional. I will release a new npm package today.