open-index/open-npm huggingface dataset:
npm package: @red-mobile/cordova-plugin-proximity
Description: This plugin provides access to the device's (IR) proximity sensor.
Author: Hiroyuki Okada
Latest version: 1.2.5

# cordova-plugin-proximity

This plugin provides access to the device's (IR) proximity sensor.

At this moment this plugin is implemented only for Android!

## Installation

```
cordova plugin add @red-mobile/cordva-plugin-proximity
```

### uninstall

```
cordova plugin remove @red-mobile/cordva-plugin-proximity
```

## Supported Platforms

- Android

## Methods

- navigator.proximity.getCurrentProximity
- navigator.proximity.watchProximity
- navigator.proximity.clearWatch
npm package: @red-mobile/cordova-plugin-speech-synthesis
Description: W3C Web Speech API - Speech synthesis plugin for Cordova
Author: Hiroyuki Okada
Latest version: 0.4.0

# cordova-plugin-speech-synthesis

W3C Web Speech API - Speech synthesis plugin for Cordova

## Installation

Using the command line tools run:

```shell
cordova plugin add @red-mobile/cordova-plugin-speech-synthesis
```

## Example Code

This code from the above Github project shows how to read the value of a text field, set up the plugin to speak that text, and vibrate the phone for 2 seconds:

```js
function playVibrate() {
    var u = new SpeechSynthesisUtterance();
    var x = document.getElementById("frm1");
    var txt = "";
    txt = x.elements[0].value;
    u.text = txt;
    u.lang = "en-US";
    speechSynthesis.speak(u);
    navigator.notification.vibrate(2000);
    document.getElementById("frm1").reset();
}
```