1.0.0 • Published 6 months ago

speech-transcriber v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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);
}