pcm-processor
Version:
Processes raw PCM data from mobile device microphones/live recordings
30 lines (25 loc) • 546 B
text/typescript
export interface PcmProcessorConfig {
sampleRate?: number;
channels?: number;
shouldRecordAudio?: boolean;
fileName?: string;
fileExtension?: string;
}
export interface RecordingStatus {
isRecording: boolean;
currentDuration: number;
}
export interface PcmData {
sampleRate: number;
channels: number;
buffer: Float32Array;
frameLength: number;
recordingStatus?: RecordingStatus;
}
export interface RecordingResult {
recordingPath?: string;
error?: string;
}
export interface PcmProcessorError {
error: string;
}