whisper.cpp/bindings/ruby/ext
KITAITI Makoto c81b2dabbc
ruby : transcribe without GVL, accept more MemoryViews, Windows support, fix memory size report, improve document (#3775)
* Change MemoryView example using NDAV

* Add note on audio attributes for #full and #full_parallel

* Support more variants of MemoryView

* Use IO.popen instead of Kernel.` for Windows compatibility

* Use cmake's -C option instead of multiple -D options

* Fix memsize calculation

* Remove unused argument

* Add is_interrupted field to abort callback container

* Fix RBS syntax

* Address document comment for RDoc

* Add .document for RDoc

* Add .rdoc_options

* Run #full without GVL

* Initialize callbacks with nil

* Specify implicity Whisper::Params to distinguish from Whisper::Context::Params

* Run callbacks without GVL

* Call log callback with GVL

* Run full_parallel without GVL

* Run transcribe without GVL

* Fix ruby_whisper_lock_gvl and ruby_whisper_unlock_gvl

* Fix return value of encoder_begin_callback

* Report GVL unlocking from transcribe

* Remove unused interface

* Restore overload of full_parallel

* Close process

* Fix struct name

* Make is_without_gvl thread local

* Use rb_thread_call_with_gvl instead of global variable

* Retrieve instance variable in GVL

* Narrow acceptable MemoryView format

* Fix option cache path

* Reduce files in package

* Use append_cflags

* Add ext/*.rb to task dependencies

* Use copy instead of cp

* Make TestPackage more portable

* Patch for lower version Ruby

* Make build scripts more portable

* Add Windows support

* Don't raise exceptions
2026-05-07 06:28:18 +02:00
..
sources ruby: use CMake in build process (#3043) 2025-04-14 18:18:27 +09:00
.gitignore ruby : add Core ML support (#3214) 2025-06-01 18:16:02 +09:00
dependencies.rb ruby : transcribe without GVL, accept more MemoryViews, Windows support, fix memory size report, improve document (#3775) 2026-05-07 06:28:18 +02:00
dependencies_for_windows.rb ruby : transcribe without GVL, accept more MemoryViews, Windows support, fix memory size report, improve document (#3775) 2026-05-07 06:28:18 +02:00
extconf.rb ruby : transcribe without GVL, accept more MemoryViews, Windows support, fix memory size report, improve document (#3775) 2026-05-07 06:28:18 +02:00
options.rb ruby : transcribe without GVL, accept more MemoryViews, Windows support, fix memory size report, improve document (#3775) 2026-05-07 06:28:18 +02:00
options_for_windows.rb ruby : transcribe without GVL, accept more MemoryViews, Windows support, fix memory size report, improve document (#3775) 2026-05-07 06:28:18 +02:00
ruby_whisper.c ruby : transcribe without GVL, accept more MemoryViews, Windows support, fix memory size report, improve document (#3775) 2026-05-07 06:28:18 +02:00
ruby_whisper.h ruby : transcribe without GVL, accept more MemoryViews, Windows support, fix memory size report, improve document (#3775) 2026-05-07 06:28:18 +02:00
ruby_whisper_context.c ruby : transcribe without GVL, accept more MemoryViews, Windows support, fix memory size report, improve document (#3775) 2026-05-07 06:28:18 +02:00
ruby_whisper_context_params.c ruby : add `Whisper::Context::Params`, fix token memory management (#3647) 2026-02-04 20:33:09 +09:00
ruby_whisper_error.c ruby : Make context accept initial parameters, API to retrieve a segment and more (#2749) 2025-01-21 09:39:54 +02:00
ruby_whisper_model.c ruby : add `VAD::Context#segments_from_samples`, allow Pathname, etc. (#3633) 2026-01-30 22:59:36 +09:00
ruby_whisper_params.c ruby : transcribe without GVL, accept more MemoryViews, Windows support, fix memory size report, improve document (#3775) 2026-05-07 06:28:18 +02:00
ruby_whisper_segment.c ruby : add `VAD::Context#segments_from_samples`, allow Pathname, etc. (#3633) 2026-01-30 22:59:36 +09:00
ruby_whisper_token.c ruby : add `Whisper::Context::Params`, fix token memory management (#3647) 2026-02-04 20:33:09 +09:00
ruby_whisper_transcribe.cpp ruby : transcribe without GVL, accept more MemoryViews, Windows support, fix memory size report, improve document (#3775) 2026-05-07 06:28:18 +02:00
ruby_whisper_vad_context.c ruby : add `VAD::Context#segments_from_samples`, allow Pathname, etc. (#3633) 2026-01-30 22:59:36 +09:00
ruby_whisper_vad_context_detect.cpp ruby : add `VAD::Context#segments_from_samples`, allow Pathname, etc. (#3633) 2026-01-30 22:59:36 +09:00
ruby_whisper_vad_params.c ruby : add `VAD::Context#segments_from_samples`, allow Pathname, etc. (#3633) 2026-01-30 22:59:36 +09:00
ruby_whisper_vad_segment.c ruby : add `VAD::Context#segments_from_samples`, allow Pathname, etc. (#3633) 2026-01-30 22:59:36 +09:00
ruby_whisper_vad_segments.c ruby : add `VAD::Context#segments_from_samples`, allow Pathname, etc. (#3633) 2026-01-30 22:59:36 +09:00