Skip to content

Commit

Permalink
ruby : add more APIs (ggerganov#2518)
Browse files Browse the repository at this point in the history
* Add test for built package existence

* Add more tests for Whisper::Params

* Add more Whisper::Params attributes

* Add tests for callbacks

* Add progress and abort callback features

* [skip ci] Add prompt usage in README

* Change prompt text in example
  • Loading branch information
KitaitiMakoto authored and liuyang.marshall committed Nov 2, 2024
1 parent 457c838 commit 9860347
Show file tree
Hide file tree
Showing 6 changed files with 451 additions and 3 deletions.
1 change: 1 addition & 0 deletions bindings/ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ params.duration = 60_000
params.max_text_tokens = 300
params.translate = true
params.print_timestamps = false
params.prompt = "Initial prompt here."

whisper.transcribe("path/to/audio.wav", params) do |whole_text|
puts whole_text
Expand Down
Loading

0 comments on commit 9860347

Please sign in to comment.