Add note on audio attributes for #full and #full_parallel

This commit is contained in:
Kitaiti Makoto 2026-03-22 03:16:43 +09:00
parent 3e855f63b2
commit cba11bbbbf
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ Whisper::Context.new("base")
### Low-level API to transcribe ###
You can also call `Whisper::Context#full` and `#full_parallel` with a Ruby array as samples. Although `#transcribe` with audio file path is recommended because it extracts PCM samples in C++ and is fast, `#full` and `#full_parallel` give you flexibility.
You can also call `Whisper::Context#full` and `#full_parallel` with a Ruby array as samples. Although `#transcribe` with audio file path is recommended because it extracts PCM samples in C++ and is fast, `#full` and `#full_parallel` give you flexibility. Unlike `#transcribe`, these methods requires 16,000 Hz, 32-bit float audio.
```ruby
require "whisper"