Skip to content

Commit

Permalink
attempt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
philmcmahon committed Oct 14, 2024
1 parent 1a07628 commit 18b0ea1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/worker/src/transcribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ const whisperParams = (
const fileName = path.parse(file).name;
const containerOutputFilePath = path.resolve(CONTAINER_FOLDER, fileName);
logger.info(`Transcription output file path: ${containerOutputFilePath}`);
const translateParam: string[] = translate ? ['--translate'] : [];
return [
'--output-srt',
'--output-txt',
Expand All @@ -267,8 +268,7 @@ const whisperParams = (
containerOutputFilePath,
'--language',
languageCode,
`${translate ? '--translate' : ''}`,
];
].concat(translateParam);
}
};

Expand All @@ -278,7 +278,7 @@ export const runWhisper = async (
) => {
const { containerId, numberOfThreads, model, wavPath } = whisperBaseParams;
const fileName = path.parse(wavPath).name;
console.log(
logger.info(
`Runnning whisper with params ${whisperParams}, base params: ${JSON.stringify(whisperBaseParams, null, 2)}`,
);

Expand Down

0 comments on commit 18b0ea1

Please sign in to comment.