whisper.cpp/bindings/ruby/ext
KITAITI Makoto 941bdabbe4
ruby : add Whisper::Context::Params, fix token memory management (#3647)
* Don't convert to temporary VALUE

* Define Whisper::Context::Params

* Add test for Whisper::Context::Params

* Implement Whisper::Context::Params

* Add tests for Context::Params

* Fix Whisper::Token memory management

* Add test for token_timestamps

* Make Context accept Context::Params

* Make Context::Params.new accept keyword args

* Add test for Context::Params.new with keyword args

* Add signature of Context::Params

* Add example for Whisper::Token

* Fix typos

* Revert "Don't convert to temporary VALUE"

This reverts commit dee66e7384.

* Hold Token#text as Ruby objectd

* Don't use pointer for ruby_whisper_context_params.params

* Use RUBY_DEFAULT_FREE instead of custom function

* Update bindings/ruby/README.md

Co-authored-by: Daniel Bevenius <daniel.bevenius@gmail.com>

* Add document for Whisper::Context::Params

---------

Co-authored-by: Daniel Bevenius <daniel.bevenius@gmail.com>
2026-02-04 20:33:09 +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_params.c ruby : add Whisper::Context::Params, fix token memory management (#3647) 2026-02-04 20:33:09 +09:00
ruby_whisper_context.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 : 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 Whisper::Context::Params, fix token memory management (#3647) 2026-02-04 20:33:09 +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 Whisper::Context::Params, fix token memory management (#3647) 2026-02-04 20:33:09 +09:00
ruby_whisper.h ruby : add Whisper::Context::Params, fix token memory management (#3647) 2026-02-04 20:33:09 +09:00