You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

cordova-plugin-speechrecognition

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-speechrecognition - npm Package Compare versions

Comparing version

to
1.1.2

5

CHANGELOG.md
# Changelog
## v1.1.2
- iOS: `startListening` do not run in background
- iOS: `startListening` check existing process
## v1.1.1

@@ -4,0 +9,0 @@

2

package.json
{
"name": "cordova-plugin-speechrecognition",
"version": "1.1.1",
"version": "1.1.2",
"description": "Cordova Plugin for Speech Recognition",

@@ -5,0 +5,0 @@ "cordova": {

@@ -23,2 +23,4 @@ # cordova-plugin-speechrecognition

This plugin requires internet connection.
### isRecognitionAvailable()

@@ -131,2 +133,45 @@

### Ionic 2 Usage
```typescript
import { SpeechRecognition } from 'ionic-native';
// Check feature available
SpeechRecognition.isRecognitionAvailable()
.then((available: boolean) => console.log(available))
// Start the recognition process
SpeechRecognition.startListening(options)
.subscribe(
(matches: Array<string>) => console.log(matches),
(onerror) => console.log('error:', onerror)
)
// Stop the recognition process (iOS only)
SpeechRecognition.stopListening()
// Get the list of supported languages
SpeechRecognition.getSupportedLanguages()
.then(
(languages: Array<string>) => console.log(languages),
(error) => console.log(error)
)
// Check permission
SpeechRecognition.hasPermission()
.then((hasPermission: boolean) => console.log(hasPermission))
// Request permissions
SpeechRecognition.requestPermission()
.then(
() => console.log('Granted'),
() => console.log('Denied')
)
```
Required: [ionic-native](https://www.npmjs.com/package/ionic-native) v2.3.0
See [Ionic Native documentation](https://ionicframework.com/docs/v2/native/speechrecognition/).
## Android Quirks

@@ -133,0 +178,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet