]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ruby : VAD separately from ASR (#3518)
authorKITAITI Makoto <redacted>
Thu, 13 Nov 2025 01:15:26 +0000 (10:15 +0900)
committerGitHub <redacted>
Thu, 13 Nov 2025 01:15:26 +0000 (10:15 +0900)
commitd9b7613b34a343848af572cc14467fc5e82fc788
treebbdb303b844bc55034de497b1a25abe6722bcf62
parenta1867e0dad0b21b35afa43fc815dae60c9a139d6
ruby : VAD separately from ASR (#3518)

* Add Whisper::VAD::Context

* Add test for Whisper::VAD::Context

* Add Whisper::VAD::Segment

* Add Whisper::VAD::Segments

* Add Whisper::VAD::Context#detect

* Define Whisper::VAD::Segments#each

* Define Whisper::VAD::Segment#start_time and #end_time

* Define Whisper::VAD::Segment#deconstruct_keys

* Add tests for Whisper::VAD family

* Add signatures for VAD family

* Add document on VAD in README

* Define Whisper::VAD::Segments#length

* Add test for Whisper::VAD::Segments#length

* Add signature of Segments#length

* Make vad_segments responsible to initialize VAD::Segments

* Remove meaningless argument check

* Check NULL of segments member

* Add tests for Whisper::VAD::Segments

* Initialize Whisper::VAD::Segment on .allocate

* Add tests for Whisper::VAD::Segment

* Check NULL of context member

* Add test for Whisper::VAD::Context.allocate
12 files changed:
bindings/ruby/README.md
bindings/ruby/ext/ruby_whisper.c
bindings/ruby/ext/ruby_whisper.h
bindings/ruby/ext/ruby_whisper_segment.c
bindings/ruby/ext/ruby_whisper_vad_context.c [new file with mode: 0644]
bindings/ruby/ext/ruby_whisper_vad_context_detect.cpp [new file with mode: 0644]
bindings/ruby/ext/ruby_whisper_vad_segment.c [new file with mode: 0644]
bindings/ruby/ext/ruby_whisper_vad_segments.c [new file with mode: 0644]
bindings/ruby/sig/whisper.rbs
bindings/ruby/test/test_vad_context.rb [new file with mode: 0644]
bindings/ruby/test/test_vad_segment.rb [new file with mode: 0644]
bindings/ruby/test/test_vad_segments.rb [new file with mode: 0644]