UNPKG

audiox-processor

Version:

AudioX: Transform Any Inspiration Into Professional Audio With AI - Audio processing utilities for the AudioX platform

40 lines (35 loc) 1.45 kB
declare module 'audiox-processor' { /** * Extract audio from a video file * @param videoPath - Path to the input video file * @param outputPath - Path to save the extracted audio * @returns Promise with the path to the extracted audio file */ export function extractAudio(videoPath: string, outputPath: string): Promise<string>; /** * Remove audio from a video file * @param videoPath - Path to the input video file * @param outputPath - Path to save the video without audio * @returns Promise with the path to the video file without audio */ export function removeAudio(videoPath: string, outputPath: string): Promise<string>; /** * Add audio to a video file * @param videoPath - Path to the input video file * @param audioPath - Path to the audio file to add * @param outputPath - Path to save the combined video * @returns Promise with the path to the combined video file */ export function addAudioToVideo(videoPath: string, audioPath: string, outputPath: string): Promise<string>; /** * Reverse an audio file * @param audioPath - Path to the input audio file * @param outputPath - Path to save the reversed audio * @returns Promise with the path to the reversed audio file */ export function reverseAudio(audioPath: string, outputPath: string): Promise<string>; /** * Temporary directory for processing */ export const TEMP_DIR: string; }