Giter Site home page Giter Site logo

lcsouzamenezes / speech-recognizer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anandakrishnan18/speech-recognizer

0.0 0.0 0.0 67 KB

The speech-recognition library for javascript. Convert speech to text easily.

License: MIT License

JavaScript 66.71% HTML 33.29%

speech-recognizer's Introduction

speech-recognizer

The speech-recognition library for javascript. Convert speech to text easily.

Installation:

First, make a package.json file:

npm init

Now, you can install this package using npm. Well you can also install the source from GitHub.

npm install javascript-speech-recognizer-library --save

NPM package: https://www.npmjs.com/package/javascript-speech-recognizer-library

Sample Code:-

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p>Click on the below button to start transcribing...</p><br>
    <p><button type="submit" id="name">๐ŸŽ™๏ธ Transcribe</button> &nbsp; <span id="action"></span></p>
    <div id="output"></div>
    <script type="module">
        import * as main from '../index.js';
        function init() {
            main.speechRegognition("output");
        };
        document.getElementById('name').onclick = init;
    </script>
</body>
</html>

Here the line of code main.speechrecognition("output"); calls the speech recognizer function from index.js and we basically add a div to contain the transcribed text which is output after transcribing. Inside the function , the first and the only parameter is the class of the div.

If any queries or doubts regarding speech-recognizer JS library, ask me at stackoverflow - https://stackoverflow.com/users/15198272/anandakrishnan

speech-recognizer's People

Contributors

anandakrishnan18 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.