UNPKG

@bddh/starling-realtime-client

Version:

21 lines (20 loc) 611 B
export type PickAudioMode = 'pressButton' | 'free'; interface RecordControllerOptions { pickAudioMode?: PickAudioMode; onAudioData: (pcmData: ArrayBuffer) => void; onError?: (err: Error) => void; pullAudioFromRtc?: boolean; brtcClient?: any; } declare class RecordController { private readonly onAudioData; private readonly onError?; private audioContext; private processor; private mediaStream; private recording; constructor(options: RecordControllerOptions); start(): Promise<void>; stop(): void; } export default RecordController;