]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ruby : add VAD speech segments API (#3931)
authorKITAITI Makoto <redacted>
Tue, 28 Jul 2026 06:08:44 +0000 (15:08 +0900)
committerGitHub <redacted>
Tue, 28 Jul 2026 06:08:44 +0000 (15:08 +0900)
commit97c56f1dc1d1100a9d859c865a20c82d22f823ed
tree57f199d2d972c1943abad6e81e9e0accae66b156
parent080bbbe85230f624f0b52127f1ae1218247989f9
ruby : add VAD speech segments API (#3931)

* Bump version

* Add test for VAD segments API

* Implement VAD segments API

* Add signatures of VAD segments API

* Stop to dependent on mutex_m

* Check segment range for vad_segment_t0/t1

* Remove needless check

* Remove dead codes

* Fix index check for VAD segments

* Remove needless line

* Use NUM2DBL instead of RFLOAT_VALUE for safety

* Fix document

* Check type of samples

* Arrange CMake cache notation for older version

* Remove unnecessary line break

* Check return value of whisper_vad_segments_from_samples

* Fix type of VAD::Segment#start_time and #end_time

* Prevent dangling pointer from Params to VAD::Params

* Fix typos

* Update README

* Make test follow fix of impl

* Use segments_from_samples_body in ruby_whisper_vad_detect

* Run segments_from_samples without GVL

* Remove unnecessary codes

* [skip ci]Remove trailing whitespace

Co-authored-by: Daniel Bevenius <redacted>
---------

Co-authored-by: Daniel Bevenius <redacted>
18 files changed:
bindings/ruby/README.md
bindings/ruby/ext/options.rb
bindings/ruby/ext/ruby_whisper.c
bindings/ruby/ext/ruby_whisper.h
bindings/ruby/ext/ruby_whisper_context.c
bindings/ruby/ext/ruby_whisper_log_settable.h
bindings/ruby/ext/ruby_whisper_params.c
bindings/ruby/ext/ruby_whisper_transcribe.cpp
bindings/ruby/ext/ruby_whisper_vad_context.c
bindings/ruby/ext/ruby_whisper_vad_context_detect.cpp
bindings/ruby/ext/ruby_whisper_vad_params.c
bindings/ruby/ext/ruby_whisper_vad_segment.c
bindings/ruby/lib/whisper/log_settable.rb
bindings/ruby/lib/whisper/model/uri.rb
bindings/ruby/sig/whisper.rbs
bindings/ruby/test/test_vad.rb
bindings/ruby/test/test_vad_context.rb
bindings/ruby/whispercpp.gemspec