From d1ad75efb8921d45ae61a5e0c0aa0850e1f2bac3 Mon Sep 17 00:00:00 2001 From: lutangar Date: Thu, 30 May 2024 16:48:14 +0200 Subject: [PATCH] chore(transcription): add preinstall script for Python dependencies --- packages/jiwer/package.json | 1 + packages/transcription/package.json | 1 + packages/transcription/requirements.txt | 3 +++ 3 files changed, 5 insertions(+) create mode 100644 packages/transcription/requirements.txt diff --git a/packages/jiwer/package.json b/packages/jiwer/package.json index 1ea515643d1..b0147695679 100644 --- a/packages/jiwer/package.json +++ b/packages/jiwer/package.json @@ -12,6 +12,7 @@ "type": "module", "devDependencies": {}, "scripts": { + "preinstall": "pip install -r requirements.txt", "build": "tsc", "watch": "tsc -w" }, diff --git a/packages/transcription/package.json b/packages/transcription/package.json index d698a5b8699..9138de4dc86 100644 --- a/packages/transcription/package.json +++ b/packages/transcription/package.json @@ -12,6 +12,7 @@ "type": "module", "devDependencies": {}, "scripts": { + "preinstall": "pip install -r requirements.txt", "build": "tsc", "watch": "tsc -w", "benchmark": "tsx --conditions=peertube:tsx --tsconfig ./tsconfig.json ./src/benchmark.ts" diff --git a/packages/transcription/requirements.txt b/packages/transcription/requirements.txt new file mode 100644 index 00000000000..bc457025cd5 --- /dev/null +++ b/packages/transcription/requirements.txt @@ -0,0 +1,3 @@ +openai-whisper==20231117 +whisper-ctranslate2==0.4.4 +whisper-timestamped==1.15.4