🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

speech-transcriber

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

speech-transcriber

A node.js library for transcribing audio to text using OpenAIs Whisper model

1.0.0
latest
Source
npm
Version published
Weekly downloads
4
-50%
Maintainers
1
Weekly downloads
 
Created
Source

speech-transcriber

NodeJS library providing access to OpenAI's Whisper model.

Install

npm install --save "speech-transcriber"

Usage

// Create a new instance of the Transcriber
// for use with 16000hz audio data.
const transcriber = await Transcriber.create(16000);

// Create a transcription stream for reading text
const stream = await transcriber.transcribe(speechSegmentStream);

// Iterate over chunks of transcription stream
// each chunk contains a string that was transcribed
// from a Float32Array.
for await (const chunk of stream) {
  console.log("Received transcribed text:", chunk);
}

Keywords

OpenAI

FAQs

Package last updated on 07 Nov 2023

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