diff --git a/.github/workflows/build_cpp.yml b/.github/workflows/build_cpp.yml index deb76c6..378a136 100644 --- a/.github/workflows/build_cpp.yml +++ b/.github/workflows/build_cpp.yml @@ -9,7 +9,7 @@ on: whisper_cpp_repo_ref: description: 'Tag, branch or commit' required: true - default: 'v1.5.0' + default: 'v1.5.1' jobs: build-windows: name: Build for Windows (x86_64) diff --git a/Packages/com.whisper.unity/Plugins/Android/libwhisper.a b/Packages/com.whisper.unity/Plugins/Android/libwhisper.a index 7374450..58aff76 100644 Binary files a/Packages/com.whisper.unity/Plugins/Android/libwhisper.a and b/Packages/com.whisper.unity/Plugins/Android/libwhisper.a differ diff --git a/Packages/com.whisper.unity/Plugins/Linux/libwhisper.so b/Packages/com.whisper.unity/Plugins/Linux/libwhisper.so index 610ae90..5666792 100644 Binary files a/Packages/com.whisper.unity/Plugins/Linux/libwhisper.so and b/Packages/com.whisper.unity/Plugins/Linux/libwhisper.so differ diff --git a/Packages/com.whisper.unity/Plugins/Linux/libwhisper_cuda.so b/Packages/com.whisper.unity/Plugins/Linux/libwhisper_cuda.so index 326f2f3..172b98f 100644 Binary files a/Packages/com.whisper.unity/Plugins/Linux/libwhisper_cuda.so and b/Packages/com.whisper.unity/Plugins/Linux/libwhisper_cuda.so differ diff --git a/Packages/com.whisper.unity/Plugins/MacOS/libwhisper.dylib b/Packages/com.whisper.unity/Plugins/MacOS/libwhisper.dylib index d023901..2e73fe8 100644 Binary files a/Packages/com.whisper.unity/Plugins/MacOS/libwhisper.dylib and b/Packages/com.whisper.unity/Plugins/MacOS/libwhisper.dylib differ diff --git a/Packages/com.whisper.unity/Plugins/MacOS/libwhisper_metal.dylib b/Packages/com.whisper.unity/Plugins/MacOS/libwhisper_metal.dylib index bbbb063..cacae61 100644 Binary files a/Packages/com.whisper.unity/Plugins/MacOS/libwhisper_metal.dylib and b/Packages/com.whisper.unity/Plugins/MacOS/libwhisper_metal.dylib differ diff --git a/Packages/com.whisper.unity/Plugins/Windows/libwhisper.dll b/Packages/com.whisper.unity/Plugins/Windows/libwhisper.dll index 528bcc0..abaae5d 100644 Binary files a/Packages/com.whisper.unity/Plugins/Windows/libwhisper.dll and b/Packages/com.whisper.unity/Plugins/Windows/libwhisper.dll differ diff --git a/Packages/com.whisper.unity/Plugins/Windows/libwhisper_cuda.dll b/Packages/com.whisper.unity/Plugins/Windows/libwhisper_cuda.dll index 12b0ef0..528bf87 100644 Binary files a/Packages/com.whisper.unity/Plugins/Windows/libwhisper_cuda.dll and b/Packages/com.whisper.unity/Plugins/Windows/libwhisper_cuda.dll differ diff --git a/Packages/com.whisper.unity/Plugins/iOS/libwhisper.a b/Packages/com.whisper.unity/Plugins/iOS/libwhisper.a index 69be8cd..c42e461 100644 Binary files a/Packages/com.whisper.unity/Plugins/iOS/libwhisper.a and b/Packages/com.whisper.unity/Plugins/iOS/libwhisper.a differ diff --git a/README.md b/README.md index c6e7738..66be074 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # whisper.unity -[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![whisper.cpp](https://img.shields.io/badge/whisper.cpp-v1.5.0-green)](https://github.com/ggerganov/whisper.cpp/releases/tag/v1.5.0) +[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![whisper.cpp](https://img.shields.io/badge/whisper.cpp-v1.5.1-green)](https://github.com/ggerganov/whisper.cpp/releases/tag/v1.5.1) [![Testing](https://github.com/Macoron/whisper.unity/actions/workflows/test.yml/badge.svg)](https://github.com/Macoron/whisper.unity/actions/workflows/test.yml) @@ -16,7 +16,7 @@ This is Unity3d bindings for the [whisper.cpp](https://github.com/ggerganov/whis **Supported platforms:** - [x] Windows (x86_64, [optional CUDA](#cuda-support)) -- [x] MacOS (Intel and ARM) +- [x] MacOS (Intel and ARM, [optional Metal](#metal-support)) - [x] Linux (x86_64, [optional CUDA](#cuda-support)) - [x] iOS (Device and Simulator) - [x] Android (ARM64) @@ -44,7 +44,12 @@ https://github.com/Macoron/whisper.unity.git?path=/Packages/com.whisper.unity To run inference with CUDA, you would need to have supported GPU and installed CUDA Toolkit (tested with [12.2.0](https://developer.nvidia.com/cuda-12-2-0-download-archive)). -After that go to the **Project Settings => Whisper => Enable CUDA**. This should force package use library compiled for CUDA. +After that go to the **Project Settings => Whisper => Enable CUDA**. This should force package to use library compiled for CUDA. + +### Metal Support +> Whisper.cpp supports Metal only on [Apple7 GPUs](https://developer.apple.com/documentation/metal/mtlgpufamily) family or newer (starting from Apple M1 chips). Trying to run on older hardware will fallback to CPU inference. + +To activate Metal inference, go to **Project Settings => Whisper => Enable Metal**. This should force package to use library compiled for Metal. ### Downloading other model weights You can try different Whisper model weights. For example, you can improve English language transcription by using English-only weights or by trying bigger models. @@ -58,7 +63,7 @@ This project comes with prebuild libraries of whisper.cpp for all supported plat In case you want to build libraries on your machine: 1. Clone the original [whisper.cpp](https://github.com/ggerganov/whisper.cpp) repository -2. Checkout tag [v1.5.0](https://github.com/ggerganov/whisper.cpp/tree/v1.5.0). Other versions might not work with this Unity bindings. +2. Checkout tag [v1.5.1](https://github.com/ggerganov/whisper.cpp/tree/v1.5.1). Other versions might not work with this Unity bindings. 3. Open whisper.unity folder with command line 4. If you are using **Windows** write: ```bash