]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ruby : bug fix on callbacks and no_speech_prob (#2656)
authorKITAITI Makoto <redacted>
Sat, 21 Dec 2024 19:52:06 +0000 (04:52 +0900)
committerGitHub <redacted>
Sat, 21 Dec 2024 19:52:06 +0000 (21:52 +0200)
commitf07a81aa9ffcd3a6eb17bb227c39df52487bc0fc
tree1d9e3f8aee35a977a759f95730fc47d53ea14e8a
parent4183517076d6f8de8f89d6b2eae3a1456ce5e29c
ruby : bug fix on callbacks and no_speech_prob (#2656)

* Don't generate documentation on test

* Move .startup to TestBase class

* Extract new_segment_callback as a function

* Extract progress_callback as a function

* Extract abort_callback as a function

* Extract register_callbacks as a function

* Call callbacks in Whiser::Context#full and #full_parallel

* Fix README

* Care about the cases content-size is nil and TTY is not available

* Add tests for no_speech_prob

* Add Whisper::Context#full_get_segment_no_speech_prob and Whisper::Segment#no_speech_prob
bindings/ruby/README.md
bindings/ruby/ext/ruby_whisper.cpp
bindings/ruby/lib/whisper/model/uri.rb
bindings/ruby/tests/helper.rb
bindings/ruby/tests/test_package.rb
bindings/ruby/tests/test_segment.rb
bindings/ruby/tests/test_whisper.rb