From ab56df93fb067cc851fb82a7ed8ab5fb551c1806 Mon Sep 17 00:00:00 2001 From: lutangar Date: Tue, 11 Jun 2024 17:31:42 +0200 Subject: [PATCH] chore(transcription): create dedicated tmp folder for transcriber tests --- .../whisper/transcriber/openai-transcriber.spec.ts | 2 +- .../whisper/transcriber/timestamped-transcriber.spec.ts | 2 +- .../whisper/transcriber/whisper-ctranslate2.spec.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/tests/src/transcription/whisper/transcriber/openai-transcriber.spec.ts b/packages/tests/src/transcription/whisper/transcriber/openai-transcriber.spec.ts index 5c21e58f1c48..172b47ccecc9 100644 --- a/packages/tests/src/transcription/whisper/transcriber/openai-transcriber.spec.ts +++ b/packages/tests/src/transcription/whisper/transcriber/openai-transcriber.spec.ts @@ -21,7 +21,7 @@ config.truncateThreshold = 0 describe('Open AI Whisper transcriber', function () { const tmpDirectory = join(tmpdir(), 'peertube-transcription') - const transcriptDirectory = join(tmpDirectory, 'transcriber') + const transcriptDirectory = join(tmpDirectory, 'transcriber', 'openai') const modelsDirectory = join(tmpDirectory, 'models') const shortVideoPath = buildAbsoluteFixturePath('transcription/videos/the_last_man_on_earth.mp4') const frVideoPath = buildAbsoluteFixturePath('transcription/videos/derive_sectaire.mp4') diff --git a/packages/tests/src/transcription/whisper/transcriber/timestamped-transcriber.spec.ts b/packages/tests/src/transcription/whisper/transcriber/timestamped-transcriber.spec.ts index d3174795bf0e..4ece2a580e7d 100644 --- a/packages/tests/src/transcription/whisper/transcriber/timestamped-transcriber.spec.ts +++ b/packages/tests/src/transcription/whisper/transcriber/timestamped-transcriber.spec.ts @@ -19,7 +19,7 @@ config.truncateThreshold = 0 describe('Linto timestamped Whisper transcriber', function () { const tmpDirectory = join(tmpdir(), 'peertube-transcription') - const transcriptDirectory = join(tmpDirectory, 'transcriber') + const transcriptDirectory = join(tmpDirectory, 'transcriber', 'timestamped') const modelsDirectory = join(tmpDirectory, 'models') const shortVideoPath = buildAbsoluteFixturePath('transcription/videos/the_last_man_on_earth.mp4') const frVideoPath = buildAbsoluteFixturePath('transcription/videos/derive_sectaire.mp4') diff --git a/packages/tests/src/transcription/whisper/transcriber/whisper-ctranslate2.spec.ts b/packages/tests/src/transcription/whisper/transcriber/whisper-ctranslate2.spec.ts index eaa261228132..f2e5f57e9425 100644 --- a/packages/tests/src/transcription/whisper/transcriber/whisper-ctranslate2.spec.ts +++ b/packages/tests/src/transcription/whisper/transcriber/whisper-ctranslate2.spec.ts @@ -20,7 +20,7 @@ config.truncateThreshold = 0 describe('Whisper CTranslate2 transcriber', function () { const tmpDirectory = join(tmpdir(), 'peertube-transcription') - const transcriptDirectory = join(tmpDirectory, 'transcriber') + const transcriptDirectory = join(tmpDirectory, 'transcriber', 'ctranslate2') const modelsDirectory = join(tmpDirectory, 'models') const shortVideoPath = buildAbsoluteFixturePath('transcription/videos/the_last_man_on_earth.mp4') const frVideoPath = buildAbsoluteFixturePath('transcription/videos/derive_sectaire.mp4')