Skip to content

Commit e2ffb77

Browse files
committed
Fix README
1 parent 8dac19a commit e2ffb77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindings/ruby/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ whisper = Whisper::Context.new("base.en")
6363
You can see the list of prepared model names by `Whisper::Model.preconverted_models.keys`:
6464

6565
```ruby
66-
puts Whisper::Model.preconverted_model_names
66+
puts Whisper::Model.preconverted_models.keys
6767
# tiny
6868
# tiny.en
6969
# tiny-q5_1
@@ -220,7 +220,7 @@ whisper.each_segment do |segment|
220220
end
221221
```
222222

223-
The second argument `samples` may be an array, an object with `length` method, or a MemoryView. If you can prepare audio data as C array and export it as a MemoryView, whispercpp accepts and works with it with zero copy.
223+
The second argument `samples` may be an array, an object with `length` and `each` method, or a MemoryView. If you can prepare audio data as C array and export it as a MemoryView, whispercpp accepts and works with it with zero copy.
224224

225225
License
226226
-------

0 commit comments

Comments
 (0)