# @red-mobile/cordova-plugin-speech-synthesis

> W3C Web Speech API - Speech synthesis plugin for Cordova

Latest version **0.4.0** (published 2023-11-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @red-mobile/cordova-plugin-speech-synthesis
pnpm add @red-mobile/cordova-plugin-speech-synthesis
yarn add @red-mobile/cordova-plugin-speech-synthesis
bun add @red-mobile/cordova-plugin-speech-synthesis
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2023-11-04 |
| First published | 2021-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Hiroyuki Okada |
| Maintainers | okhiroyuki |
| Keywords | ecosystem:cordova, cordova-android |

## Links

- npm: https://www.npmjs.com/package/@red-mobile/cordova-plugin-speech-synthesis
- Repository: https://github.com/okhiroyuki/cordova-plugin-speech-synthesis
- Homepage: https://github.com/okhiroyuki/cordova-plugin-speech-synthesis#readme
- Issues: https://github.com/okhiroyuki/cordova-plugin-speech-synthesis/issues
- npm.io page: https://npm.io/package/@red-mobile/cordova-plugin-speech-synthesis

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.4.0 (latest) — 2023-11-04
- 0.3.0 — 2023-11-04
- 0.2.0 — 2021-09-24

## README

# 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();
}
```

---
_Source: https://npm.io/package/@red-mobile/cordova-plugin-speech-synthesis · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
