Skip to content

Commit

Permalink
Updated whisper.cpp to 1.5.1 (#65)
Browse files Browse the repository at this point in the history
* Update whisper to 1.5.1

* Update README.md

* Update build_cpp.yml
  • Loading branch information
Macoron committed Nov 30, 2023
1 parent 48cb786 commit 25c8d26
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Binary file modified Packages/com.whisper.unity/Plugins/Android/libwhisper.a
Binary file not shown.
Binary file modified Packages/com.whisper.unity/Plugins/Linux/libwhisper.so
Binary file not shown.
Binary file modified Packages/com.whisper.unity/Plugins/Linux/libwhisper_cuda.so
Binary file not shown.
Binary file modified Packages/com.whisper.unity/Plugins/MacOS/libwhisper.dylib
Binary file not shown.
Binary file modified Packages/com.whisper.unity/Plugins/MacOS/libwhisper_metal.dylib
Binary file not shown.
Binary file modified Packages/com.whisper.unity/Plugins/Windows/libwhisper.dll
Binary file not shown.
Binary file not shown.
Binary file modified Packages/com.whisper.unity/Plugins/iOS/libwhisper.a
Binary file not shown.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand All @@ -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)
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 25c8d26

Please sign in to comment.