speech-transcriber
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i speech-transcriber

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

74.8 MB

Total Files

6

Last publish

Collaborators

  • ianmarmour