diff --git a/misc/Makefile b/misc/Makefile --- a/misc/Makefile +++ b/misc/Makefile @@ -658,6 +658,7 @@ SUBDIR += vxl SUBDIR += wego SUBDIR += whichman + SUBDIR += whisper.cpp SUBDIR += window SUBDIR += with SUBDIR += wmScoreBoard diff --git a/misc/whisper.cpp/Makefile b/misc/whisper.cpp/Makefile new file mode 100644 --- /dev/null +++ b/misc/whisper.cpp/Makefile @@ -0,0 +1,23 @@ +PORTNAME= whisper.cpp +DISTVERSIONPREFIX= v +DISTVERSION= 1.7.3 +CATEGORIES= misc +MASTER_SITES= https://ggml.ggerganov.com/:model +DISTFILES= ggml-model-whisper-base.en.bin:model +EXTRACT_ONLY= ${GH_ACCOUNT}-${GH_PROJECT}-${GH_TAGNAME}_GH0${EXTRACT_SUFX} + +MAINTAINER= jrm@FreeBSD.org +COMMENT= OpenAI Whisper model in C/C++ +WWW= https://github.com/ggerganov/whisper.cpp + +LICENSE= MIT + +USES= cmake +CMAKE_ARGS+= -DWHISPER_BUILD_EXAMPLES=ON +USE_GITHUB= yes +GH_ACCOUNT= ggerganov + +post-extract: + ${CP} ${DISTDIR}/ggml-model-whisper-base.en.bin ${WRKSRC}/models/ggml-base.en.bin + +.include diff --git a/misc/whisper.cpp/distinfo b/misc/whisper.cpp/distinfo new file mode 100644 --- /dev/null +++ b/misc/whisper.cpp/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1735830528 +SHA256 (ggml-model-whisper-base.en.bin) = a03779c86df3323075f5e796cb2ce5029f00ec8869eee3fdfb897afe36c6d002 +SIZE (ggml-model-whisper-base.en.bin) = 147964211 +SHA256 (ggerganov-whisper.cpp-v1.7.3_GH0.tar.gz) = a36faa04885b45e4dd27751a37cb54300617717dbd3b7e5ec336f830e051a28c +SIZE (ggerganov-whisper.cpp-v1.7.3_GH0.tar.gz) = 5381137 diff --git a/misc/whisper.cpp/pkg-descr b/misc/whisper.cpp/pkg-descr new file mode 100644 --- /dev/null +++ b/misc/whisper.cpp/pkg-descr @@ -0,0 +1,4 @@ +Whisper is a general-purpose speech recognition model. It is trained on a large +dataset of diverse audio and is also a multitasking model that can perform +multilingual speech recognition, speech translation, and language +identification. diff --git a/misc/whisper.cpp/pkg-plist b/misc/whisper.cpp/pkg-plist new file mode 100644 --- /dev/null +++ b/misc/whisper.cpp/pkg-plist @@ -0,0 +1,23 @@ +include/ggml-alloc.h +include/ggml-backend.h +include/ggml-blas.h +include/ggml-cann.h +include/ggml-cpu.h +include/ggml-cuda.h +include/ggml-kompute.h +include/ggml-metal.h +include/ggml-opt.h +include/ggml-rpc.h +include/ggml-sycl.h +include/ggml-vulkan.h +include/ggml.h +include/whisper.h +lib/cmake/whisper/whisper-config.cmake +lib/cmake/whisper/whisper-version.cmake +lib/libggml-base.so +lib/libggml-cpu.so +lib/libggml.so +lib/libwhisper.so +lib/libwhisper.so.1 +lib/libwhisper.so.1.7.3 +libdata/pkgconfig/whisper.pc