pbakondy / cordova-plugin-speechrecognition

:microphone: Cordova Plugin for Speech Recognition
MIT License
196 stars 117 forks source link

delete #24

Closed akane-tendo closed 7 years ago

akane-tendo commented 7 years ago

pbakondy commented 7 years ago

Please complete the case. What method did you call with parameters. What is happening? What is the expected behavior?

pbakondy commented 7 years ago

Chris, could you show me the JS code as well? Based on the catlog I think you call three methods of this plugin consecutively. Does the startListening call the error callback?

On 23 Mar 2017 23:09, "Chris" notifications@github.com wrote:

Thank you for your answer. I'm sorry, I'm confuse about your request because I thought to sent you all informations that you requested inside the catlog.

A: What method did you call with parameters? Q: As a catlog, I called "startListening()" with params: "language": "en-US", "matches": "1", "prompt": "Hi", "showPopup": false

A: What is happening? Q: Nothing happen... and nothing inside the catlog too

A: What is the expected behavior? Q: I'm expecting to receive the successCallback from "startListening()" method.

I hope this can help you, otherwise my apologies because I didn't understand what you need :) Thank you again

Regards

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pbakondy/cordova-plugin-speechrecognition/issues/24#issuecomment-288875850, or mute the thread https://github.com/notifications/unsubscribe-auth/AAej2ZE95mIWMrKucqkXO_H3NXQrnAtOks5rou2TgaJpZM4MmQeK .

pbakondy commented 7 years ago

This JS code is not right. You should use callbacks everywhere. You should not call startListening right after requestPermission, these are asynchronous processes. Function startListening() returns with error callback but you don't print out the results.