API ReferenceLocal APIs
useTranscribe
React hook — speech-to-text (Whisper) over WebGPU.
Auto-generated from JSDoc in
packages/react/src/local/useTranscribe.ts. Do not edit — runnpm run docs:api.
useTranscribe
functionfunction useTranscribe(opts: UseTranscribeOptions): UseTranscribeUseTranscribe
interfaceinterface UseTranscribestatus: TranscribeStatus
progress: number
text: string
Text of the most recent transcription.
error?: Error
load: () => Promise<TranscriptionModel>
transcribe: (audio: Float32Array, sampleRate?: number) => Promise<string>
Transcribe a clip (Float32 PCM). Pass the segment audio from useVAD's onSpeechEnd.
UseTranscribeOptions
interfaceinterface UseTranscribeOptionsmodel?: string
Whisper repo (default onnx-community/whisper-base).
device?: unknown
dtype?: unknown
language?: string
TranscribeStatus
type aliastype TranscribeStatus = idle | loading | ready | transcribing | error