You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
511 B
24 lines
511 B
TOPDIR = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
|
EXTDIR = File.join(TOPDIR, 'ext')
|
|
#$LIBDIR = File.join(TOPDIR, 'lib')
|
|
#$:.unshift(LIBDIR)
|
|
$:.unshift(EXTDIR)
|
|
|
|
require 'whisper'
|
|
require 'test/unit'
|
|
|
|
class TestWhisper < Test::Unit::TestCase
|
|
def setup
|
|
@params = Whisper::Params.new
|
|
@whisper = Whisper::Context.new(File.join(TOPDIR, '..', '..', 'models', 'for-tests-ggml-base.en.bin'))
|
|
end
|
|
|
|
def test_autodetect
|
|
@params.auto_detection = true
|
|
end
|
|
|
|
def test_whisper
|
|
end
|
|
|
|
end
|