whisper.cpp/bindings/ruby/ext
KITAITI Makoto aa1bc0d1a6
ruby : add VAD::Context#segments_from_samples, allow Pathname, etc. (#3633)
* ruby : Bump version to 1.3.6

* Fix code in example

* Add sample code to transcribe from MemoryView

* Define GetVADContext macro

* Use GetVADContext

* Extract parse_full_args function

* Use parse_full_args in ruby_whisper_full_parallel

* Free samples after use

* Check return value of parse_full_args()

* Define GetVADParams macro

* Add VAD::Context#segments_from_samples

* Add tests for VAD::Context#segments_from_samples

* Add signature for VAD::Context#segments_from_samples

* Add sample code for VAD::Context#segments_from_samples

* Add test for Whisper::Context#transcribe with Pathname

* Make Whisper::Context#transcribe and Whisper::VAD::Context#detect accept Pathname

* Update signature of Whisper::Context#transcribe

* Fix variable name

* Don't free memory view

* Make parse_full_args return struct

* Fallback when failed to get MemoryView

* Add num of samples when too long

* Check members of MemoryView

* Fix a typo

* Remove unnecessary include

* Fix a typo

* Fix a typo

* Care the case of MemoryView doesn't fit spec

* Add TODO comment

* Add optimazation option to compiler flags

* Use ALLOC_N instead of malloc

* Add description to sample code

* Rename and change args: parse_full_args -> parse_samples

* Free samples when exception raised

* Assign type check result to a variable

* Define wrapper function of whisper_full

* Change signature of parse_samples for rb_ensure

* Ensure release MemoryView

* Extract fill_samples function

* Free samples memory when filling it failed

* Free samples memory when transcription failed

* Prepare transcription in wrapper funciton

* Change function name

* Simplify function boundary
2026-01-30 22:59:36 +09: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 : add cleaning of library names in dependencies (#3241) 2025-06-10 15:06:40 +02:00
extconf.rb ruby : add VAD::Context#segments_from_samples, allow Pathname, etc. (#3633) 2026-01-30 22:59:36 +09:00
options.rb ruby : add Whisper::VERSION (#3292) 2025-06-27 04:41:26 +02:00
ruby_whisper_context.c ruby : add VAD::Context#segments_from_samples, allow Pathname, etc. (#3633) 2026-01-30 22:59:36 +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 : add VAD::Context#segments_from_samples, allow Pathname, etc. (#3633) 2026-01-30 22:59:36 +09: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 VAD::Context#segments_from_samples, allow Pathname, etc. (#3633) 2026-01-30 22:59:36 +09:00
ruby_whisper_transcribe.cpp 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_context.c 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
ruby_whisper.c ruby : add VAD::Context#segments_from_samples, allow Pathname, etc. (#3633) 2026-01-30 22:59:36 +09:00
ruby_whisper.h ruby : add VAD::Context#segments_from_samples, allow Pathname, etc. (#3633) 2026-01-30 22:59:36 +09:00