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); } 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)
Type declaration
type: "microphone"
microphone: Microphone | string
output: "stream"
Optional
streamCallback?: ((audioBuffer) => void)
- (audioBuffer): void
Returns void
Creates a recorder item for an audio file, using the provided microphone. Output is stored in a RecordKit bundle.