@ngxvoice/ngx-voicelistner
ngx-voicelistner is a Angular2+ voice component webkit speech api for voice based input
Last updated 3 months ago by voice .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install @ngxvoice/ngx-voicelistner 
SYNC missed versions from official npm registry.

ngx-voiceinput

This is a voice based input plugin for angular2+ framewrok. It was built for modern browsers using TypeScript, CSS3 and HTML5 and Angular >=4.0.0, and Google Chrome is the only browser which supports web speech API.

Installation

npm install @ngxvoice/ngx-voicelistner or yarn add @voice/ngx-voicelistner

Usage

App module
import { NgxVoiceListnerModule } from "@voice/ngx-voicelistner";

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [BrowserModule, NgxVoiceListnerModule],
  bootstrap: [AppComponent]
})
export class AppModule { }

Example component
@Component({
  selector: 'example-component',
  styleUrls: [],
  providers: [],
  template: `<div class="container">
              <voice-listner-input [lang]='en-US' (onListeningVoice)="getTheSearchString($event)" ></voice-listner-input>
             </div>`
})
export class ExampleComponent {

  public voiceStringList: string[] = ['test'];

  constructor() {
  
  }

  public getTheSearchString(finalString: string) {
    console.log('new string - ', finalString);
    this.voiceStringList.push(finalString);
  }
}

Credits

ngx-voiceinput is based on ngx-datatable's seed project.

made with :heart: by nithin

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (849)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |