cordova-plugin-speechrecognition
Advanced tools
Comparing version
{ | ||
"name": "cordova-plugin-speechrecognition", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Cordova Plugin for Speech Recognition", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -37,10 +37,11 @@ # cordova-plugin-speechrecognition | ||
Function successCallback, Function errorCallback, | ||
String language, Number matches, String prompt) | ||
String language, Number matches, String prompt, Boolean showPartial) | ||
``` | ||
This method has 3 optional parameters: | ||
This method has 4 optional parameters: | ||
- `language` {String} used language for recognition (default "en-US") | ||
- `matches` {Number} number of return matches (default 5, on iOS: maximum number of matches) | ||
- `prompt` {String} displayed prompt of listener popup window (default "", Android only) | ||
- `language` {String} used language for recognition (default `"en-US"`) | ||
- `matches` {Number} number of return matches (default `5`, on iOS: maximum number of matches) | ||
- `prompt` {String} displayed prompt of listener popup window (default `""`, Android only) | ||
- `showPartial` {Boolean} Allow partial results to be returned (default `false`, iOS only) | ||
@@ -51,2 +52,4 @@ Result of success callback is an `Array` of recognized terms. | ||
If you set `showPartial` to `true` on iOS the success callback will be called multiple times until `stopListening()` called. | ||
### stopListening() | ||
@@ -53,0 +56,0 @@ |
@@ -5,4 +5,4 @@ module.exports = { | ||
}, | ||
startListening: function(successCallback, errorCallback, language, matches, prompt) { | ||
cordova.exec(successCallback, errorCallback, 'SpeechRecognition', 'startListening', [language, matches, prompt]); | ||
startListening: function(successCallback, errorCallback, language, matches, prompt, showPartial) { | ||
cordova.exec(successCallback, errorCallback, 'SpeechRecognition', 'startListening', [language, matches, prompt, showPartial]); | ||
}, | ||
@@ -9,0 +9,0 @@ stopListening: function(successCallback, errorCallback) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
30666
1.89%170
1.8%