Socket
Book a DemoInstallSign in
Socket

@luoshenshi/speechrecognition

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luoshenshi/speechrecognition

A free package for SpeechRecognition

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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!

Keywords

speech-to-text

FAQs

Package last updated on 20 Jan 2024

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