Skip to content

Instantly share code, notes, and snippets.

View li-jia-nan's full-sized avatar

lijianan li-jia-nan

  • moego
  • Hangzhou, China
  • 13:29 (UTC +08:00)
  • LinkedIn in/li-jia-nan
View GitHub Profile
@li-jia-nan
li-jia-nan / MicrophoneRecorder.ts
Last active March 14, 2024 10:23
MicrophoneRecorder
import RecordRTC from "recordrtc";
const options: RecordRTC.Options = {
type: "audio",
mimeType: "audio/wav",
recorderType: RecordRTC.StereoAudioRecorder,
};
class MicrophoneRecorder {
recorder: RecordRTC | undefined;