# cordova-plugin-sscspeech

> speech

Latest version **10.0.6** (published 2018-01-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-sscspeech
pnpm add cordova-plugin-sscspeech
yarn add cordova-plugin-sscspeech
bun add cordova-plugin-sscspeech
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 10.0.6 |
| Published | 2018-01-08 |
| First published | 2017-04-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wuyanjiang |
| Maintainers | yanjiangwu |
| Keywords | speech |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-sscspeech
- Repository: https://github.com/YanjiangWu/SSCSpeech
- Homepage: https://github.com/YanjiangWu/SSCSpeech#readme
- Issues: https://github.com/YanjiangWu/SSCSpeech/issues
- npm.io page: https://npm.io/package/cordova-plugin-sscspeech

## Recent versions

- 10.0.6 (latest) — 2018-01-08
- 1.0.6 — 2017-05-03
- 1.0.2 — 2017-04-22
- 1.0.1 — 2017-04-22
- 1.0.0 — 2017-04-21

## README

## 安装

```bash
$ cordova plugin add cordova-plugin-sscspeech
```

或者通过git安装：

```bash
$ cordova plugin add https://github.com/YanjiangWu/SSCSpeech
```

## 使用方式

```javascript
export class SummerSpeech {
    static open(): Promise<any> {
        return new Promise((resolve, reject) => {
            if (null != cordova && cordova['plugins'] && cordova['plugins']['Speech'] && cordova["plugins"]['Speech']['open']) {
                try {
                    cordova["plugins"]['Speech']['open']({}, function (data) {
                        if (data && data.result) {
                            resolve(data.result)
                        }
                    }, reject);
                } catch(error) {
                    console.error(error);
                }
            } else {
                reject("启动语音识别失败");
            }
        });
    }
}
```

## 与国信插件有冲突

 > 此插件在iOS上与国信插件有冲突，所以在`plugin.xml`中已经将与国新插件共用的framework注释，安装国信插件时，直接安装即可。但是如果是没有安装国信插件，则需要首先将`plugin.xml`中以下取消以下两行的注释：

```xml
<!--
<framework src="src/ios/MBProgressHUD.framework" custom="true" />
<framework src="AVFoundation.framework" />
-->
```

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