armor-editor
Version:
Advanced rich text editor with premium armor-grade security, real-time collaboration, spell checking, track changes, and framework-agnostic design for React, Vue, Angular, Next.js, Nuxt.js
29 lines (28 loc) • 690 B
TypeScript
export interface VoiceComment {
id: string;
userId: string;
userName: string;
audioBlob: Blob;
duration: number;
timestamp: Date;
position: {
start: number;
end: number;
};
transcription?: string;
}
export declare class VoiceCommentsSystem {
private editor;
private mediaRecorder;
private audioChunks;
private isRecording;
private voiceComments;
constructor(editor: any);
private setupVoiceComments;
startRecording(): Promise<void>;
stopRecording(): void;
private saveVoiceComment;
private renderVoiceComment;
getVoiceComments(): VoiceComment[];
deleteVoiceComment(id: string): void;
}