Skip to content

Commit dfd5988

Browse files
authored
move wasm files to tmp (#2084)
1 parent cb04e58 commit dfd5988

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/server/transcripts/flagger.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,18 @@ export async function addFlaggerAudio(show: Show): Promise<Buffer> {
4646
console.log('Creating ffmpeg instance');
4747
await downloadFile(
4848
'https://cdn.jsdelivr.net/npm/@ffmpeg.wasm/core-mt@0.13.2/dist/core.wasm',
49-
'./core.wasm'
49+
'/tmp/core.wasm'
5050
);
5151
await downloadFile(
5252
'https://cdn.jsdelivr.net/npm/@ffmpeg.wasm/core-mt@0.13.2/dist/core.worker.js',
53-
'./core.worker.cjs'
53+
'/tmp/core.worker.cjs'
5454
);
5555
const ffmpeg = await FFmpeg.create({
5656
log: true,
5757
core: core,
5858
coreOptions: {
59-
wasmPath: './core.wasm',
60-
workerPath: './core.worker.cjs'
59+
wasmPath: '/tmp/core.wasm',
60+
workerPath: '/tmp/core.worker.cjs'
6161
},
6262
logger: (type, ...message) => {
6363
logProgress(message.join(' '));

0 commit comments

Comments
 (0)