From 08164097afb04764b2a25a977b49e0fe86fa9845 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Fri, 8 Dec 2023 01:14:57 +0200 Subject: [PATCH] +openai.com/whisper (#4341) * new file: projects/openai.com/whisper/package.yml * without llvm --- projects/openai.com/whisper/package.yml | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 projects/openai.com/whisper/package.yml diff --git a/projects/openai.com/whisper/package.yml b/projects/openai.com/whisper/package.yml new file mode 100644 index 00000000..cb2b2308 --- /dev/null +++ b/projects/openai.com/whisper/package.yml @@ -0,0 +1,26 @@ +distributable: + url: https://github.com/openai/whisper/archive/v{{version.major}}.tar.gz + strip-components: 1 +versions: + github: openai/whisper +dependencies: + python.org: ^3.11 + ffmpeg.org: ^6.1 + huggingface.co: ^0.19 + pyyaml.org: ^0.2 +build: + dependencies: + rust-lang.org: ^1.65 + script: + - python-venv.sh {{prefix}}/bin/whisper +provides: + - bin/whisper +test: + dependencies: + curl.se: '*' + script: + - curl -L $TESTFILE > test.flac + - whisper test.flac --model tiny.en --output_format txt + - cat test.txt | grep 'American' + env: + TESTFILE: https://github.com/openai/whisper/raw/e58f28804528831904c3b6f2c0e473f346223433/tests/jfk.flac