cordova-plugin-speechrecognition
Advanced tools
Comparing version
# Changelog | ||
## v1.2.0 | ||
- Android: add `stopListening` [by Simone Compagnone] | ||
- Android: enable partial results [by Simone Compagnone] | ||
## v1.1.2 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "cordova-plugin-speechrecognition", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Cordova Plugin for Speech Recognition", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -43,3 +43,3 @@ # cordova-plugin-speechrecognition | ||
Boolean showPopup, // Android only | ||
Boolean showPartial // iOS only | ||
Boolean showPartial | ||
} | ||
@@ -57,3 +57,3 @@ | ||
- `showPopup` {Boolean} display listener popup window with prompt (default `true`, Android only) | ||
- `showPartial` {Boolean} Allow partial results to be returned (default `false`, iOS only) | ||
- `showPartial` {Boolean} Allow partial results to be returned (default `false`) | ||
@@ -68,4 +68,2 @@ Result of success callback is an `Array` of recognized terms. | ||
iOS only method. | ||
```js | ||
@@ -135,7 +133,11 @@ window.plugins.speechRecognition.stopListening( | ||
### Ionic 2 Usage | ||
### Ionic Usage | ||
```typescript | ||
import { SpeechRecognition } from 'ionic-native'; | ||
import { SpeechRecognition } from '@ionic-native/speech-recognition'; | ||
constructor(private speechRecognition: SpeechRecognition) { } | ||
... | ||
// Check feature available | ||
@@ -174,5 +176,5 @@ SpeechRecognition.isRecognitionAvailable() | ||
Required: [ionic-native](https://www.npmjs.com/package/ionic-native) v2.3.0 | ||
Required: [ionic-native/speech-recognition](https://www.npmjs.com/package/@ionic-native/speech-recognition) | ||
See [Ionic Native documentation](https://ionicframework.com/docs/v2/native/speechrecognition/). | ||
See [Ionic Native documentation](https://ionicframework.com/docs/native/speech-recognition/). | ||
@@ -179,0 +181,0 @@ |
Sorry, the diff of this file is not supported yet
38706
4.19%371
8.48%228
0.88%