@luoshenshi/speechrecognition
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

SpeechRecognition

SpeechRecognition is a free library that enables the conversion of speech into text. It's essentially a JavaScript adaptation of Python's SpeechRecognition library, and no it doesn't require Python to be installed on your system.

Installation

To use SpeechRecognition, you first need to install it using the following command:

npm install @luoshenshi/speechrecognition

How to Use

Once you have successfully installed the library, you can use it as follows:

const { Recognizer } = require("@luoshenshi/speechrecognition");
const recognizer = new Recognizer();

recognizer.addListener("whenReady", () => {
  console.log("I'm Listening...");
});

(async () => {
  try {
    const transcript = await recognizer.listen();
    console.log(transcript);
  } catch (error) {
    console.log(error);
  }
})();

I apologize but this library is currently not compatible with Mac and Linux.

Expected Future Changes

I'm actively working on making this library compatible with Linux and Mac operating systems. Stay tuned for updates!

Package Sidebar

Install

npm i @luoshenshi/speechrecognition

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

14.4 MB

Total Files

64

Last publish

Collaborators

  • luoshenshi