From f16c12f3f55f5bd3d6ac8cf2f31ab90a42c884d5 Mon Sep 17 00:00:00 2001 From: Orel-A Date: Mon, 27 Oct 2025 08:49:32 +0200 Subject: [PATCH 1/3] wasm : fix Hebrew ID (#3487) whisper_lang_id: unknown language 'iw' --- examples/whisper.wasm/index-tmpl.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/whisper.wasm/index-tmpl.html b/examples/whisper.wasm/index-tmpl.html index 0a7e40e3..91108e35 100644 --- a/examples/whisper.wasm/index-tmpl.html +++ b/examples/whisper.wasm/index-tmpl.html @@ -144,7 +144,7 @@ - + From c62adfbd1ecdaea9e295c72d672992514a2d887c Mon Sep 17 00:00:00 2001 From: KITAITI Makoto Date: Wed, 29 Oct 2025 03:50:44 +0900 Subject: [PATCH 2/3] ruby : tiny bug fix (#3490) * Remove build-xcframework.sh from package * Remove unused variable * Bump version to 1.3.5 * Don't use variable before declaration --- bindings/ruby/extsources.rb | 1 + bindings/ruby/lib/whisper/model/uri.rb | 3 ++- bindings/ruby/test/test_segment.rb | 1 - bindings/ruby/whispercpp.gemspec | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bindings/ruby/extsources.rb b/bindings/ruby/extsources.rb index 18ae348d..b24f1a7f 100644 --- a/bindings/ruby/extsources.rb +++ b/bindings/ruby/extsources.rb @@ -27,6 +27,7 @@ ignored_files = %w[ twitch.sh yt-wsp.sh close-issue.yml + build-xcframework.sh ] EXTSOURCES = diff --git a/bindings/ruby/lib/whisper/model/uri.rb b/bindings/ruby/lib/whisper/model/uri.rb index d8a98699..9cb90855 100644 --- a/bindings/ruby/lib/whisper/model/uri.rb +++ b/bindings/ruby/lib/whisper/model/uri.rb @@ -94,7 +94,8 @@ module Whisper end def show_progress(current, size) - progress_rate_available = size && $stderr.tty? && $stderr.winsize[1] >= line.size + line_size = 47 + progress_rate_available = size && $stderr.tty? && $stderr.winsize[1] >= line_size unless @prev @prev = Time.now diff --git a/bindings/ruby/test/test_segment.rb b/bindings/ruby/test/test_segment.rb index cb4ba9eb..08a037c0 100644 --- a/bindings/ruby/test/test_segment.rb +++ b/bindings/ruby/test/test_segment.rb @@ -73,7 +73,6 @@ class TestSegment < TestBase end def test_transcription_after_segment_retrieved - params = Whisper::Params.new segment = whisper.each_segment.first assert_match(/ask not what your country can do for you, ask what you can do for your country/, segment.text) diff --git a/bindings/ruby/whispercpp.gemspec b/bindings/ruby/whispercpp.gemspec index eac35b8a..2e05769a 100644 --- a/bindings/ruby/whispercpp.gemspec +++ b/bindings/ruby/whispercpp.gemspec @@ -3,7 +3,7 @@ require_relative "extsources" Gem::Specification.new do |s| s.name = "whispercpp" s.authors = ["Georgi Gerganov", "Todd A. Fisher"] - s.version = '1.3.4' + s.version = '1.3.5' s.description = %q{High-performance inference of OpenAI's Whisper automatic speech recognition (ASR) model via Ruby} s.email = 'todd.fisher@gmail.com' s.extra_rdoc_files = ['LICENSE', 'README.md'] From 999a7e0cbf8484dc2cea1e9f855d6b39f34f7ae9 Mon Sep 17 00:00:00 2001 From: Oleg Orlov Date: Sat, 1 Nov 2025 15:38:28 +0300 Subject: [PATCH 3/3] whisper : enable IGPU (#3492) Co-authored-by: Oleg Orlov --- src/whisper.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/whisper.cpp b/src/whisper.cpp index 33e556c4..f6793cb2 100644 --- a/src/whisper.cpp +++ b/src/whisper.cpp @@ -1296,7 +1296,11 @@ static ggml_backend_t whisper_backend_init_gpu(const whisper_context_params & pa if (params.use_gpu) { for (size_t i = 0; i < ggml_backend_dev_count(); ++i) { ggml_backend_dev_t dev_cur = ggml_backend_dev_get(i); - if (ggml_backend_dev_type(dev_cur) == GGML_BACKEND_DEVICE_TYPE_GPU || ggml_backend_dev_type(dev_cur) == GGML_BACKEND_DEVICE_TYPE_IGPU) { + enum ggml_backend_dev_type dev_type = ggml_backend_dev_type(dev_cur); + const char * dev_name = ggml_backend_dev_name(dev_cur); + WHISPER_LOG_INFO("%s: device %zu: %s (type: %d)\n", __func__, i, dev_name, dev_type); + if (dev_type == GGML_BACKEND_DEVICE_TYPE_GPU || dev_type == GGML_BACKEND_DEVICE_TYPE_IGPU) { + WHISPER_LOG_INFO("%s: found GPU device %zu: %s (type: %d, cnt: %d)\n", __func__, i, dev_name, dev_type, cnt); if (cnt == params.gpu_device) { dev = dev_cur; }