npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

coquisttjs

v0.1.1

Published

Coqui STT runtime transcript NodeJs client, including server usage examples.

Downloads

11

Readme

CoquiSTTJs

Coqui STT runtime transcript NodeJs client, including multithread (server) usage examples.

What's Coqui STT?

Coqui STT on github is an open-source Speech-To-Text engine, project fork of Mozilla DeepSpeech. Documentation for installation, usage, and training models are available on Coqui STT documentation.

Now, you want to access Coqui STT speech to text transcription, from nodeJs. Coqui STT official native NodeJs API:

✨ Coqui STT run-time decoding, using NodeJs

This project supplies to nodeJs developers a simple API interface on top of the Coqui STT native NodeJs binding. Here the current API javascript endpoints:

  • loadModel(modelFile, scorerFile)
  • transcriptBuffer(audioBuffer, model)
  • transcriptFile(audioFile, model)
  • freeModel(model)

📦 Install

Install Coqui STT engine, models, audio

# Create a virtual environment
$ python3 -m venv venv-stt
$ source venv-stt/bin/activate

# Install 🐸STT
$ python3 -m pip install -U pip
$ python3 -m pip install stt

# Download 🐸's pre-trained English models
$ curl -LO https://github.com/coqui-ai/STT/releases/download/v0.9.3/coqui-stt-0.9.3-models.pbmm
$ curl -LO https://github.com/coqui-ai/STT/releases/download/v0.9.3/coqui-stt-0.9.3-models.scorer

# Download some example audio files
$ curl -LO https://github.com/coqui-ai/STT/releases/download/v0.9.3/audio-0.9.3.tar.gz
$ tar -xvf audio-0.9.3.tar.gz

# Transcribe an audio file
$ stt --model coqui-stt-0.9.3-models.pbmm --scorer coqui-stt-0.9.3-models.scorer --audio audio/2830-3980-0043.wav

Install CoquiSTTJs

npm install coquisttjs

🛠 Usage examples and tests

Some usage examples and tests. Examples include:

🎁 Bonus tracks

  • audioutils.js fast transcoding to PCM, using ffmpeg process (install ffmpeg before).

🧶 Status

  • The project is in a very draft stage.
  • Current Coqui STT npm package solve the DeepSpeech issue. In facts current npm package deepspeech cause a crash using node version 16.0.0. BTW I had success using DeeSpeech npm package with Node version 14.16.1. See my project DeepSpeechJs.
  • Complete the high-level API interface. E.g. including metadata as parameters

How to contribute

If you like the project, please ⭐️ star this repository to show your support! 🙏

Any contribute is welcome.

  • Discussions. Please open a new discussion (a publich chat on github) for any specific open topic, for a clarification, change request proposals, etc.
  • Issues Please submit issues for bugs, etc
  • e-mail You can contact me privately, via email.

License

MIT (c) Giorgio Robino


top