voice-to-text
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

HitCount

Voice To Text

voice-to-text is a wrapper around webkitSpeechRecognition API, which is supports Angular 4+ Applications.

Run npm i voice-to-text for installing.

Import and add InputModule in your app module.

import { InputModule } from 'voice-to-text';

Declare as

<app-input (error)="onError($event)" (spokenText)="response($event)"></app-input>

spokenText triggers should be tagged to a event in your component so, when the API gets any input it invokes the text in your listener and similarly when there is any error error gets triggered.

showInput flag is used to hide are display the input box, by default it is true.

<app-input showInput = false (error) = "onError($event)" (spokenText) = "response($event)"></app-input>

NPM

Readme

Keywords

none

Package Sidebar

Install

npm i voice-to-text

Weekly Downloads

14

Version

2.0.0

License

MIT

Unpacked Size

61.8 kB

Total Files

17

Last publish

Collaborators

  • jkrishna