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

speech-ai-transcribe

v1.0.1

Published

A powerful browser-based tool for converting spoken language into written text using advanced speech recognition technology.

Downloads

4

Readme

Speech-AI-Transcribe Tool

About

Speech-AI-Transcribe is a powerful tool for converting spoken language to written text directly in the browser. It uses advanced speech recognition technology and is easy to integrate into many types of projects. This tool is especially useful for those needing transcription of media files or real-time audio streams.

Examples

Example 1

Video On Demand (VOD) Content or Streams

In the main example, you can see how to create movies where the word being said is highlighted.

Additional Examples

Example 2

Example 3

Example 4

How to Install

Preparation Steps

First, make sure Node.js is installed on your computer.

Next, add the module to your project by running:

npm install speech-ai-transcribe

How to Use It

The Speech-AI-Transcribe offers two main ways to work: FileTranscriber for files and StreamTranscriber for live audio.

Server Setup

Make sure your web server is set to handle files correctly:

  • "Cross-Origin-Embedder-Policy": "require-corp"
  • "Cross-Origin-Opener-Policy": "same-origin"

NPM Way

If you use npm, install the package and move needed files to your project folder:

npm install --save speech-ai-transcribe
cp node_modules/speech-ai-transcribe/dist/* /your/project

Manual Way

If not using a package manager, download and copy the dist/ files from the repository to your project manually:

<script type="importmap">
{
  "imports": {
    "speech-ai-transcribe": "/path/to/speech-ai-transcribe.js"
  }
}
</script>
<script type="module">
  import { FileTranscriber } from "speech-ai-transcribe";
  ...
</script>

Example to Follow

To make your audio or video files into text, setup the transcriber with model and worker path:

import { FileTranscriber } from "speech-ai-transcribe";

const myTranscriber = new FileTranscriber({
  model: "/path/to/model.bin",
  workerPath: "/path/to/worker"
});

await myTranscriber.init();

const result = await myTranscriber.transcribe("/path/to/file.mp3");
console.log(result);

You get a JSON object with text parts, times, and chance scores.

How to Develop

For those interested in contributing or tweaking:

git clone https://github.com/aresobus/speech-ai-transcribe
cd speech-ai-transcribe
npm install
npm run dev

Open http://localhost:9876/examples/index.html to see your changes in a local development setup.

Testing

Run unit tests and functional tests with:

npm run test:unit
npm run test:e2e

Create TypeScript definitions from JSDoc:

npm run generate-types

Thanks

Big thanks to many open source projects and contributors that help make Speech-AI-Transcribe possible.

License

This project is shared under the MIT License, allowing everyone to use, change, and share within the license terms.