add-music-to-video
Version:
Add background music to my videos very easily
7 lines (6 loc) • 408 B
TypeScript
export declare const downloadYoutubeMusic: (duration: number, { getYoutubeUrl, download, convert, truncate, }?: {
getYoutubeUrl?: (() => Promise<string>) | undefined;
download?: ((url: string) => Promise<string>) | undefined;
convert?: ((m4aFile: string) => Promise<string>) | undefined;
truncate?: ((mp3File: string, duration: number) => Promise<string>) | undefined;
}) => Promise<string>;