transcribePcmStream
Import from: @xbbg/xnews, @xbbg/xnews/asr
transcribePcmStream(
source,options):AsyncGenerator<RealtimeAsrEvent>
Defined in: src/asr/stream.ts (declaration: asr/stream.d.ts:6)
Transcribes a finite or live stream of mono 16 kHz s16le PCM frames. The backend is ready before the source iterator is created.
Parameters
source
AsyncIterable<Uint8Array<ArrayBufferLike>>
options
Returns
AsyncGenerator<RealtimeAsrEvent>
