Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

446 B
Raw Blame
import type { MicRecording } from './mic-recorder';
import type { VoiceRecording } from './narrate-recording';

export function usableRecording(recording: MicRecording): VoiceRecording | null {
  if (recording.audioEpochMs === null || recording.pcm.length === 0) return null;
  return {
    pcm: recording.pcm,
    sampleRate: recording.sampleRate,
    audioEpochMs: recording.audioEpochMs,
    durationSeconds: recording.durationSeconds,
  };
}