https://github.com/Fdom92/stencil-voice2text
A webcomponent built with stencil to convert audio into text
https://github.com/Fdom92/stencil-voice2text
stencil stenciljs voicetext webcomponents
Last synced: 16 days ago
JSON representation
A webcomponent built with stencil to convert audio into text
- Host: GitHub
- URL: https://github.com/Fdom92/stencil-voice2text
- Owner: Fdom92
- License: mit
- Created: 2017-10-04T18:16:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-24T08:47:15.000Z (over 6 years ago)
- Last Synced: 2025-04-01T06:33:45.439Z (18 days ago)
- Topics: stencil, stenciljs, voicetext, webcomponents
- Language: TypeScript
- Size: 63.5 KB
- Stars: 11
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-stenciljs - ST-Voice2Text
README

# stencil-voice2text
wc-voice2text is a web component built with [Stencil](https://stenciljs.com/) that allows you to use the [Web Speech API](https://developers.google.com/web/updates/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API).
## Getting Started
To try this component:
```bash
git clone [email protected]:Fdom92/stencil-voice2text.git
cd my-app
git remote rm origin
```and run:
```bash
npm install
npm start
```## Using this component
### Script tag
- Put `` in the head of your index.html
- Then you can use the element like this:
```html
```
### Node Modules
- Run `npm install stencil-voice2text --save`
- Put a script tag similar to this `
<input type="text"></input>
</wc-voice2text>
```> You can use it with ion input too, just import the ionic core collection:
>```html
><wc-voice2text>
> <ion-input></ion-input>
></wc-voice2text>
>```## Parameters
Attribute | Default | Description
------------ | ------------- | -------------
enabled | true | Make the speech recognition available or not
continuous | false | Make the speech recognition ends when the user stops talking or continue.
lang | `en-US` | Make the speech recognition use english.