InternalBegins the upload from the session's producer and returns the promise that carries its outcome. Supplied by the service.
Whether the audio has ended, by close(), result() or abort().
Wait for the result, ending the audio first if it is still open.
A promise that resolves to the finished response.
Queue a piece of audio for upload. Never blocks, so it is safe to call from an audio library's capture callback.
Once the audio has ended — by close(), result(), abort(), or the
request settling on its own — a late write is dropped, not thrown.
write() is meant to be called from a capture callback that the caller
may not have stopped in lockstep with teardown, and throwing into that
callback can take down the process; silently ignoring the trailing chunks
is safer. A genuine type error is still surfaced at once, while the
session is open.
Audio bytes, in order: a Uint8Array, Buffer or
ArrayBuffer.
A live upload that audio is pushed into.
Returned by
client.sync.openLive(). The request starts the moment the session opens;write()hands it audio,close()ends the audio, andresult()resolves with the transcript. Built for callback-driven sources: a microphone library, a WebRTC track, a telephony media stream, a websocket handler receiving frames. Sources that already are streams or async iterables can go straight toclient.sync.transcribeLive()instead.Everything
transcribeLive()says about when it pays off, the 120 s audio cap, the server-side silence abort and errors surfacing mid-upload applies here unchanged.Example