Socket
Book a DemoInstallSign in
Socket

speechyl

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

speechyl

Web Speech API library wrapper

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

npm npm

SpeechYL

SpeechYL (spitʃ waj ɛl) is a Web Speech API library wrapper. It helps with the basic usage of web speech api. You can associate a sentence to a function with just a json object.

Installation

From npm

$ npm install speechyl

Quick tutorial

A quick tutorial available here.

Documentation

Documentation available here.

Usage

Getting started

Start by importing the library if you are using ES6

import SpeechYL from 'speechyl'

Or put the script file in the html file :

<script src="speechYL.min.js"></script>
var speechYL = new SpeechYL();
var lang = "en-EN";
speechYL.setLang(lang);

Simple example commands file


[
    {
        "recognition": "Hello",
        "synthesis": "Hello World"
    },
    {
        "recognition": {
            "en-EN": "log me out",
            "fr-FR": "deconnecte moi"
        },
        "func": "logOut"
    },
    {
        "recognition": {
            "en-EN": "go to the previous page",
            "fr-FR": "va a la page precedente"
        },
        "func": "goPreviousPage"
    },
    {
        "recognition": {
            "en-EN": "go to the next page",
            "fr-FR": "va a la page suivante"
        },
        "func": "goNextPage"
    },

]

Keywords

Web

FAQs

Package last updated on 24 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts