An open API service indexing awesome lists of open source software.

https://github.com/kosich/rxjs-stt

RxJS wrapper for speech recognition Web API
https://github.com/kosich/rxjs-stt

javascript rxjs speech-recognition speech-to-text typescript

Last synced: 3 months ago
JSON representation

RxJS wrapper for speech recognition Web API

Awesome Lists containing this project

README

        





👂


Web API Speech recognition with RxJS




NPM
Bundlephobia
MIT license







A RxJS wrapper around browser native [SpeechRecognition](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition)

Try it [**online**](https://stackblitz.com/edit/rxjs-stt?file=index.ts)

## Install

```
npm i rxjs-stt
```

## Use

```js
import { listen } from 'rxjs-stt';

listen({ lang: 'en' }).subscribe(e => {
if (e.type == 'result') {
console.log(e.results[0][0].transcript);
}
});
```

## Enjoy 🙂