# speech-services

> This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.1.3.

Latest version **0.0.2** (published 2020-02-05) · 0 weekly downloads

## Install

```sh
npm install speech-services
pnpm add speech-services
yarn add speech-services
bun add speech-services
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2020-02-05 |
| First published | 2020-02-04 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 62.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | proxectoavatar |

## Links

- npm: https://www.npmjs.com/package/speech-services
- npm.io page: https://npm.io/package/speech-services

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0

## Recent versions

- 0.0.2 (latest) — 2020-02-05
- 0.0.1 — 2020-02-04

## README

# SpeechServices

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.1.3.

# Descripción

Esta librería se implementa sobre los servicios speech-recognition y text-to-speech de IONIC y que expone los siguientes servicios:

* TextToSpeechService: este servicio expone los siguiente métodos:

    * Un método speak() que acepta como parámetros de entrada un texto y un locale, y devuelve un Promise \<any\> que se resuelve cuando finalice la reproducción del texto.

    * Un método stopSpeaking() que detiene la locución en curso y devuelve Promise\<any\>.

* SpeechToTextService: este servicio expone los siguiente métodos:

    * Un método startListening() que acepta como parámetro de entrada un locale devuelve un Observable<string[]> que se resolverá cuando finalice la escucha. Esta promesa contendrá un array de strings con los textos identificados.

    * Un método stopListening() que detiene la escucha en curso y devuelve un Promise<void>  (sólo válido para iOS).


## Requisitos

Para el empleo de esta librería es necesario disponer de los siguientes plugins en el proyecto al que se va a incorporar:

* https://github.com/pbakondy/cordova-plugin-speechrecognition

* https://github.com/vilic/cordova-plugin-tts

Los pasos para instalarlos son los siguientes:

* ionic cordova plugin add cordova-plugin-tts
* npm install @ionic-native/text-to-speech
* ionic cordova plugin add cordova-plugin-speechrecognition
* npm install @ionic-native/speech-recognition

## Code scaffolding

Run `ng generate component component-name --project speech-services` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project speech-services`.
> Note: Don't forget to add `--project speech-services` or else it will be added to the default project in your `angular.json` file.

## Build

Run `ng build speech-services` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build speech-services`, go to the dist folder `cd dist/speech-services` and run `npm publish`.

## Running unit tests

Run `ng test speech-services` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

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