Socket
Socket
Sign inDemoInstall

node-deepspeech

Package Overview
Dependencies
80
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-deepspeech

node package using the mozilla deepspeech


Version published
Maintainers
1
Weekly downloads
3
decreased by-50%

Weekly downloads

Readme

Source

node-DeepSpeech npm

npm downloads

NPM

What is the node-DeepSpeech?

It started in Jan 23, 2019

this is component using node and morzilla/DeepSpeech.

💡 Motivation

No one made a valid repository for DeepSpeech and we made it.

🏃‍♀️🏃‍♂️QuickStart

1-1. If you want use in your project

$ yarn add node-deepspeech
// OR
$ npm install node-deepspeech

1-2. If you want use in local

// use HTTPS
$ git clone https://github.com/teamthesol/node-DeepSpeech.git
// Or use SSH
$ git clone git@github.com:teamthesol/node-DeepSpeech.git

2-1. if you have training models of deepspeech

Modify your training models directory name to 'models'. follow:

$ mv [your models name] [models name to be changed]

2-2 if you don't have training models of deepspeech, prepare files to be used in advance. follow:

$ npm run pre
  1. edit .env file follw:
Modify file name `.emv.sample's` to `.env`. this is use 'dotenv'.

Edit environment value 'DEEPSPEECH_MODEL_PATH' in `.env`. this is your 'models' path. 'models' is your trainint models. if you run `npm run pre`, edit like 'DEEPSPEECH_MODEL_PATH="./models'(this is only use in node-deepspeech).

but, if you don't want use 'dotenv', run `export DEEPSPEECH_MODEL_PATH="./your/models/path"` in terminal(bash, zsh, fish, etc).

4-1. If you want use in your project

write your project. Now the preparations that we can do are over!

4-2. If you want use in local

// run file-demo // or yarn file-demo
$ npm run file-demo
// run streaming-demo
$ npm run streaing demo // or yarn streaming-demo

🔧 Used Opensources

mozila deepspeech(MPL 2.0) node(MIT)

Script

TitleDescription
file-demorunnung demo using the file path.
streaming-demorunning demo using the microphone.
preinstall pre-information(audio sample, training models).

Development Environments

TitleDescriptionDefault
DEEPSPEECH_MODEL_PATHyour deepspeech 'models' path./models

Function

TitleDescriptionInput
dsBufferMozilla/Deepspeech function using the buffer data.buffer
dsFileMozilla/Deepspeech function using the file path.file path
dsStreamingMozilla/Deepspeech function using the microphone.emmiter(use new EventEmitter()

Usage

The best example of using our service is react-deepspeech.

How can I contribute to this project?

First, read the our contribution guideline. if you have read it, you can contribute to our project by creating issues or contribute to it in pull requests.

License

License

Keywords

FAQs

Last updated on 28 Jan 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc