From 961724a9bdd1d43847bb739c38ca47d96ad22e45 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 1ea515643d1d..b0147695679d 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 d698a5b86999..9138de4dc869 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 000000000000..bc457025cd5b --- /dev/null +++ b/packages/transcription/requirements.txt @@ -0,0 +1,3 @@ +openai-whisper==20231117 +whisper-ctranslate2==0.4.4 +whisper-timestamped==1.15.4