]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ruby : add Whisper::Token, fix model URI (#3575)
authorKITAITI Makoto <redacted>
Wed, 24 Dec 2025 07:52:16 +0000 (16:52 +0900)
committerGitHub <redacted>
Wed, 24 Dec 2025 07:52:16 +0000 (16:52 +0900)
commit6114e692136bea917dc88a5eb2e532c3d133d963
tree7f4b9323164c26553d0ddfcbf794a976f8cedca9
parent6c22e792cb0ee155b6587ce71a8410c3aeb06949
ruby : add Whisper::Token, fix model URI (#3575)

* Define and use macro to get context safely

* Add test to check SEGV

* Move installation guid after usage

* [skip ci]Change doc slightly

* [skip ci]Fix a typo in README

* [skip ci]Add carry_initial_prompt option in README

* Define GetVADSegments and use it

* Use GetContext

* Fix download URI of small.en-tdrz

* Fix URI of CoreML models corresponding to quantized models

* Cache computed string

* Remove unused argument

* Add Whisper::Token

* Add document comments

* Rename function: rb_whisper_token_s_new -> ruby_whisper_token_s_init

* Fix size of token

* Insert _get into function names

* Add Whisper::Token#text

* Add test for Whisper::Token#text

* Declare static if possible

* Change method names

* Add Whisper::Token#deconstruct_keys

* Add tests for Whisper::Token#deconstruct_keys

* Add signatures for Whisper::Token

* Complete signature

* [skip ci]Add n_tokens to document of Segment
15 files changed:
bindings/ruby/README.md
bindings/ruby/ext/extconf.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_model.c
bindings/ruby/ext/ruby_whisper_params.c
bindings/ruby/ext/ruby_whisper_segment.c
bindings/ruby/ext/ruby_whisper_token.c [new file with mode: 0644]
bindings/ruby/ext/ruby_whisper_transcribe.cpp
bindings/ruby/ext/ruby_whisper_vad_segments.c
bindings/ruby/lib/whisper/model/uri.rb
bindings/ruby/sig/whisper.rbs
bindings/ruby/test/test_token.rb [new file with mode: 0644]
bindings/ruby/test/test_whisper.rb