]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ruby : Add no_speech_thold (#2641)
authorKITAITI Makoto <redacted>
Wed, 18 Dec 2024 09:00:50 +0000 (18:00 +0900)
committerGitHub <redacted>
Wed, 18 Dec 2024 09:00:50 +0000 (11:00 +0200)
commit3a27b2b91b6cda56d31590da9c1093e5dc96c818
treecc71c3f6f5ebaa717718efa26d3d9022afd398c0
parentd34445e96087198bf28f122f097db55fc0b10b37
ruby : Add no_speech_thold (#2641)

* Remove Whisper::Model.[]

* Fix Whisper::Model::URI#request

* Make Whisper::Context#initialize accept pre-converted model name

* Use downloading pre-converted model feature for testing

* Update README

* Remove unnecessary task

* Move whisper/model.rb -> whisper/model/uri.rb

* Update document comment of Whisper::Context#initialize

* Don't show download progress when not tty

* Pass String to raise

* Use cache model file if download fails

* Add test for auto download

* Specify required Ruby version

* Fix a typo

* Remove unnecessary flags

* Initialize Whisper::Params#diarize explicitely

* Remove redundant code from README for simplicity

* Add Whisper::Params#no_speech_thold attribute

* Add test for Whisper::Params#no_speech_thold
14 files changed:
bindings/ruby/README.md
bindings/ruby/Rakefile
bindings/ruby/ext/extconf.rb
bindings/ruby/ext/ruby_whisper.cpp
bindings/ruby/lib/whisper.rb
bindings/ruby/lib/whisper/model.rb [deleted file]
bindings/ruby/lib/whisper/model/uri.rb [new file with mode: 0644]
bindings/ruby/tests/helper.rb
bindings/ruby/tests/test_callback.rb
bindings/ruby/tests/test_model.rb
bindings/ruby/tests/test_params.rb
bindings/ruby/tests/test_segment.rb
bindings/ruby/tests/test_whisper.rb
bindings/ruby/whispercpp.gemspec