Skip to content

Siri for your web app: Allows you to navigate your web app using voice actions with intelligent voice recognition. Find this on NPM

License

Notifications You must be signed in to change notification settings

josharsh/Voice-Actions-Web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voice-Actions-Web

Navigate your web app with your voice

Install

npm i voice-actions-web

How to use

import VoiceActions from 'VoiceActions';
// In App.js
VoiceActions("button1Id", "button2id");

Examples

1

function Button(){
  return(
    <button id="click2" onClick={()=>{
      VoiceActions({"actionIds":["click","click2","click4","click5","click6"]})
    }}>Let me try this</button>
  )
}
// Add Buttons with IDs here

2

function App() {
  VoiceActions({"actionIds":["click","click2"]})
  return (
    <div className="App">
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />
      </header>
    <button id="click">Go to Home </button>
    <button id="click2"> Go to About </button>
    </div>

When does Voice command identification start?

You can configure it to any event to start for the first time (using VoiceActions function). Post that every mouse click would result into a voice command identification.

About

Siri for your web app: Allows you to navigate your web app using voice actions with intelligent voice recognition. Find this on NPM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published