Skip to content

Commit 9061843

Browse files
committed
Update README
1 parent 30f3c9d commit 9061843

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

bindings/ruby/README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ require "whisper"
2424

2525
whisper = Whisper::Context.new("base")
2626

27-
params = Whisper::Params.new
28-
params.language = "en"
29-
params.offset = 10_000
30-
params.duration = 60_000
31-
params.max_text_tokens = 300
32-
params.translate = true
33-
params.print_timestamps = false
34-
params.initial_prompt = "Initial prompt here."
27+
params = Whisper::Params.new(
28+
language: "en",
29+
offset: 10_000,
30+
duration: 60_000,
31+
max_text_tokens: 300,
32+
translate: true,
33+
print_timestamps: false,
34+
initial_prompt: "Initial prompt here."
35+
)
3536

3637
whisper.transcribe("path/to/audio.wav", params) do |whole_text|
3738
puts whole_text

0 commit comments

Comments
 (0)