Fix lint errors
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import createFFmpeg from "@ffmpeg/core";
|
||||
import type { FFmpegCoreModule } from "@ffmpeg/types";
|
||||
|
||||
void (async () => {
|
||||
const wav = Uint8Array.from(
|
||||
fs.readFileSync(path.join(__dirname, "../../../testdata/audio-15s.wav"))
|
||||
);
|
||||
|
||||
const ffmpeg = await createFFmpeg();
|
||||
const ffmpeg = (await createFFmpeg()) as FFmpegCoreModule;
|
||||
ffmpeg.setProgress((progress) =>
|
||||
console.log(`transcoding progress: ${progress * 100} %`)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user