Skip to content

OpenReel Video - Professional browser-based video editor. Open source CapCut alternative. 100% browser-based, no installation, no cloud uploads, no watermarks.

TypeScript
440 B
Raw Blame
import type { AudioRepairBridge } from "@openreel/agent";
import { analyzeClip } from "../audio-repair";

/** Agent-facing clip audio analysis: decodes the clip through the export mixdown and runs the issue detectors. */
export function createAudioRepairBridge(): AudioRepairBridge {
  return {
    async analyze(clipId) {
      const { report, suggestions } = await analyzeClip(clipId);
      return { report, suggestions };
    },
  };
}