We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30f3c9d commit 9061843Copy full SHA for 9061843
bindings/ruby/README.md
@@ -24,14 +24,15 @@ require "whisper"
24
25
whisper = Whisper::Context.new("base")
26
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."
+params = Whisper::Params.new(
+ language: "en",
+ offset: 10_000,
+ duration: 60_000,
+ max_text_tokens: 300,
+ translate: true,
+ print_timestamps: false,
+ initial_prompt: "Initial prompt here."
35
+)
36
37
whisper.transcribe("path/to/audio.wav", params) do |whole_text|
38
puts whole_text
0 commit comments