Streaming
Transcription
Transcribes audio into the input language.
npm i @xsai/stream-transcriptionExamples
Before using this package, please verify that your provider supports "stream": true.
Basic
import { } from '@xsai/stream-transcription'
import { } from 'node:fs'
const { } = ({
: '',
: 'https://api.openai.com/v1/',
: await ('./test/fixtures/basic.wav', { : 'audio/wav' }),
: 'basic.wav',
: 'en',
: 'gpt-4o-transcribe',
})