• Stars
    star
    194
  • Rank 199,097 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Set of React components that use the Web Speech API to bring voice experience to React applications

react-voice-components

Build Status

Set of React components that use the Web Speech API to bring voice experience to React applications. Check out the โœจ ๐Ÿ’Ž LIVE DEMO ๐Ÿ’Ž โœจ

Install

Install the components using npm:

$ npm install --save react-voice-components

Usage

  1. Import components:
import { VoicePlayer, VoiceRecognition } from 'react-voice-components'
  1. Use it:
ReactDOM.render(
  <VoicePlayer
    play
    text="React voice player demonstration"
  />,
  document.getElementById('root')
)

API

<VoicePlayer />

Provides you a simple React component to do speech synthesis (text to speech).

Options

Property Options Description
play boolean Specifies if the speech should be played when mounted.
pause boolean Specifies if the speech should pause
text string Specifies the text that shall be spoken.
lang en-US, en-GB, es-ES, fr-FR, it-IT, de-DE, ja-JP, pt-BR, zh-CN Specifies the accent and language the speech will be spoken.

Event Callbacks

Property Description
onStart Runs when the speech starts to be spoken.
onEnd Runs when the speech completes to be spoken.
onPause Runs when te speech is paused.
onResume Runs when the speech is resumed.

<VoiceRecognition />

Provides you a simple React component to do voice recognition (speech to text).

Options

Property Options Description
continuous boolean Specifies if the recognition should continue when the user pauses while speaking.
stop boolean Specifies if the recognition should be stoped (when used with continuous=true)

Event Callbacks

Property Description
onStart Runs when the recognition starts.
onEnd Runs when the recognition ends.
onError Runs when there is a recognition error.
onResult Runs when there is a recognition result.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

LICENSE

MIT (c) 2017 Guilherme Rv Coelho

More Repositories

1

css-styleguide

๐Ÿ“– Opinionated CSS styleguide for scalable applications
413
star
2

lint-diff

๐Ÿ’… Run eslint only in the changed parts of the code
JavaScript
114
star
3

arturia

๐ŸŽน arturia - a fully functional recreation of Arturia's MiniLab 3 MIDI controller made with CSS and JavaScript
TypeScript
108
star
4

vim-javascript-snippets

๐Ÿ”ง JavaScript & NodeJS Snippets for Vim
67
star
5

silverplate

๐ŸŒ Front-end boilerplate with Webpack, Hot Reload, Tree-Shaking and React
JavaScript
64
star
6

babelfish

๐Ÿก Straightforward library for translations and dictionaries
JavaScript
47
star
7

payment-request

๐Ÿ’ธ Implementation of Payment Request Api using pagarme
JavaScript
17
star
8

169254

๐Ÿ“Ÿ A simple API that simulate AWS EC2's metadata endpoint
Go
16
star
9

talks

โšก Lightning Talks
8
star
10

dotfiles

๐Ÿ”ง General-purpose dotfiles for terraforming your brand-new OS.
Shell
7
star
11

nosce

๐Ÿ“ฏ Get metadata information of your EC2 instances
Go
6
star
12

pagarme-github-challenge

๐Ÿ‘ทThis was a challenge I did in 2015 to be part of Pagar.me's Front-end Team
JavaScript
5
star
13

lando

โ˜„๏ธ Functional library utility for modern javascript
JavaScript
4
star
14

stripe

๐Ÿ’ธ Stripe's Checkout in React
JavaScript
4
star
15

wifi-password

Get your wifi's password in Fish Shell
Shell
3
star
16

vault

๐Ÿฆ Manage credentials securely using AWS KMS and AWS DynamoDB
2
star
17

dungeon

๐Ÿ‰ An attempt at a dungeon rogue-like deck game
Reason
2
star
18

react-deckset

๐Ÿ“ฐ Create beautiful presentations written in markdown
1
star
19

hackerrank

๐Ÿ“€ h4ck1ng ๐Ÿ“€
Go
1
star
20

brastemp

๐Ÿ“ฆ Proof-of-concept of a cluster infrastructure to deploy containers in the cloud.
HCL
1
star
21

hashi

๐Ÿ“Ÿ Proof-of-concept of a Hashicorp cluster infrastructure (Terraform, Consul, Nomad and Packer)
1
star
22

webhulk

๐Ÿ’ช A lightweight API for managing webhooks
Go
1
star