Skip to content

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 ​

TranscribePcmStreamOptions

Returns ​

AsyncGenerator<RealtimeAsrEvent>

Last updated:

xbbg is independent open-source software and is not affiliated with, endorsed by, sponsored by, or approved by Bloomberg Finance L.P.