Type alias MicrophoneSchema

MicrophoneSchema: {
    type: "microphone";
    microphone: Microphone | string;
    leftChannelOnly?: boolean;
    audioDelay?: number;
    output?: "singleFile";
    filename?: string;
} | {
    type: "microphone";
    microphone: Microphone | string;
    leftChannelOnly?: boolean;
    audioDelay?: number;
    output: "segmented";
    filenamePrefix?: string;
    segmentCallback?: ((url) => void);
} | {
    type: "microphone";
    microphone: Microphone | string;
    output: "stream";
    streamCallback?: ((audioBuffer) => void);
}

Creates a recorder item for an audio file, using the provided microphone. Output is stored in a RecordKit bundle.

Type declaration

  • type: "microphone"
  • microphone: Microphone | string
  • Optional leftChannelOnly?: boolean
  • Optional audioDelay?: number
  • Optional output?: "singleFile"
  • Optional filename?: string

Type declaration

  • type: "microphone"
  • microphone: Microphone | string
  • Optional leftChannelOnly?: boolean
  • Optional audioDelay?: number
  • output: "segmented"
  • Optional filenamePrefix?: string
  • Optional segmentCallback?: ((url) => void)
      • (url): void
      • Parameters

        • url: string

        Returns void

Type declaration

  • type: "microphone"
  • microphone: Microphone | string
  • output: "stream"
  • Optional streamCallback?: ((audioBuffer) => void)

    Called with real-time audio buffer data compatible with Web Audio API

Generated using TypeDoc