From 154eba502f1768e83a8bee0c15184b9062cab378 Mon Sep 17 00:00:00 2001 From: lutangar Date: Tue, 30 Apr 2024 11:03:18 +0200 Subject: [PATCH] feat(transcription): allow use of a local mode in timestamped-whisper --- .../whisper/transcriber/timestamped-transcriber.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) 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 febb28dcf..1f394400b 100644 --- a/packages/tests/src/transcription/whisper/transcriber/timestamped-transcriber.spec.ts +++ b/packages/tests/src/transcription/whisper/transcriber/timestamped-transcriber.spec.ts @@ -80,6 +80,10 @@ you `) }) + it('May transcribe a media file using a local PyTorch model file', async function () { + await transcriber.transcribe(frVideoPath, { name: 'myLocalModel', path: buildAbsoluteFixturePath('transcription/models/tiny.pt') }, 'fr') + }) + it('May transcribe a media file in french', async function () { this.timeout(45000) const transcript = await transcriber.transcribe(frVideoPath, { name: 'tiny' }, 'fr', 'txt')