whisper.cpp/bindings/ruby/test
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
..
jfk_reader ruby : Add parallel transcription support (#3222) 2025-06-04 14:50:18 +09:00
helper.rb ruby : specify Apple frameworks explicitly on build (#3270) 2025-06-23 06:34:05 +02:00
test_callback.rb ruby : Add parallel transcription support (#3222) 2025-06-04 14:50:18 +09:00
test_error.rb ruby : Add parallel transcription support (#3222) 2025-06-04 14:50:18 +09:00
test_model.rb ruby : Add parallel transcription support (#3222) 2025-06-04 14:50:18 +09:00
test_package.rb ruby : add Whisper::VERSION (#3292) 2025-06-27 04:41:26 +02:00
test_params.rb vad : Silero VAD v6.2.0 (#3524) 2025-11-17 22:26:17 +09:00
test_segment.rb ruby : tiny bug fix (#3490) 2025-10-29 03:50:44 +09:00
test_token.rb ruby : fix segmentation fault (#3591) 2026-01-05 17:41:22 +09:00
test_vad.rb vad : Silero VAD v6.2.0 (#3524) 2025-11-17 22:26:17 +09:00
test_vad_context.rb ruby : add `VAD::Context#segments_from_samples`, allow Pathname, etc. (#3633) 2026-01-30 22:59:36 +09:00
test_vad_params.rb ruby : Add parallel transcription support (#3222) 2025-06-04 14:50:18 +09:00
test_vad_segment.rb ruby : VAD separately from ASR (#3518) 2025-11-13 10:15:26 +09:00
test_vad_segments.rb ruby : VAD separately from ASR (#3518) 2025-11-13 10:15:26 +09:00
test_whisper.rb ruby : add `VAD::Context#segments_from_samples`, allow Pathname, etc. (#3633) 2026-01-30 22:59:36 +09:00