Missing openai-whisper
I’m trying to use openai-whisper instead of whisper-ctranslate2 but I get the following error message. It seems like whisper isn’t installed because it not to be found in /var/www/peertube/storage/bin/pip/bin. I guess this should’ve been installed automatically. Can I install it manually? If so, how?
The reason I want to use openai-whisper instead of whisper-ctranslate2, is that I want to use a custom Whisper model that when tested outside Peertube, works best in its original form.
ExecaError: Command failed with ENOENT: /var/www/peertube/storage/bin/pip/bin/whisper /var/www/peertube/storage/web-videos/private/b8dd8faf-9a30-4674-a4ba-b80f17686833-1080.mp4 --word_timestamps True --model small --output_format all --output_dir /var/www/peertube/storage/tmp/transcription/rSHCPcf74seHDVE13WjcuL
spawn /var/www/peertube/storage/bin/pip/bin/whisper ENOENT
at getFinalError (file:///var/www/peertube/versions/peertube-v8.2.4/node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/return/final-error.js:6:9)
at makeError (file:///var/www/peertube/versions/peertube-v8.2.4/node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/return/result.js:108:16)
at getAsyncResult (file:///var/www/peertube/versions/peertube-v8.2.4/node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/methods/main-async.js:168:4)
at handlePromise (file:///var/www/peertube/versions/peertube-v8.2.4/node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/methods/main-async.js:151:17)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
at async OpenaiTranscriber.transcribe (file:///var/www/peertube/versions/peertube-v8.2.4/packages/transcription/dist/whisper/transcriber/openai-transcriber.js:14:9)
at async file:///var/www/peertube/versions/peertube-v8.2.4/dist/core/lib/video-captions.js:140:36
at async VideoPathManager.makeAvailableFactory (file:///var/www/peertube/versions/peertube-v8.2.4/dist/core/lib/video-path-manager.js:158:22)
at async generateSubtitle (file:///var/www/peertube/versions/peertube-v8.2.4/dist/core/lib/video-captions.js:137:9)
at async Object.wrapPromiseFun (file:///var/www/peertube/versions/peertube-v8.2.4/dist/core/lib/plugins/hooks.js:8:24)
at async /var/www/peertube/versions/peertube-v8.2.4/node_modules/.pnpm/bullmq@5.77.6/node_modules/bullmq/dist/cjs/classes/worker.js:589:32
This is related to Can't get automatic transcription to work - #2 par zxc, but more specific for openai-whisper and using the production envirionment.
6 messages - 2 participant(e)s