UNPKG

@chengsokdara/use-whisper

Version:

React Hook for OpenAI Whisper API with speech recorder and silence removal built-in.

8 lines (7 loc) 227 B
declare module 'lamejs' { type Encoder = { encodeBuffer: (left: Int16Array, right?: Int16Array) => Int8Array flush: () => Int8Array } function Mp3Encoder(channels: 1 | 2, samplerate: number, kbps: number): void }