use en model and transcribe jfk with assertion

pull/500/head
Todd Fisher 1 year ago
parent 621370290c
commit 673ad053e8
No known key found for this signature in database
GPG Key ID: 15A1619895B1FB4A

@ -125,13 +125,13 @@ class TestWhisper < Test::Unit::TestCase
end
def test_whisper
@whisper = Whisper::Context.new(File.join(TOPDIR, '..', '..', 'models', 'for-tests-ggml-base.en.bin'))
@whisper = Whisper::Context.new(File.join(TOPDIR, '..', '..', 'models', 'ggml-base.en.bin'))
params = Whisper::Params.new
params.print_timestamps = false
jfk = File.join(TOPDIR, '..', '..', 'samples', 'jfk.wav')
@whisper.transcribe(jfk, params) {|text|
puts text.inspect
assert_match /ask not what your country can do for you, ask what you can do for your country/, text
}
end

Loading…
Cancel
Save