+openai.com/whisper (#4341)

* new file:   projects/openai.com/whisper/package.yml

* without llvm
This commit is contained in:
Andrew 2023-12-08 01:14:57 +02:00 committed by GitHub
parent ebad7306d6
commit 08164097af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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