MCPcopy Create free account
hub / github.com/aarnphm/whispercpp / test_from_params

Function test_from_params

tests/export_test.py:63–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62@p.mark.skipif(not s.which("ffmpeg"), reason="ffmpeg not found, skipping this test.")
63def test_from_params():
64 m = w.Whisper.from_params("tiny.en", w.api.Params.from_enum(w.api.SAMPLING_GREEDY))
65 assert _EXPECTED == m.transcribe(preprocess(JFK_WAV))
66
67
68@p.mark.skipif(not s.which("ffmpeg"), reason="ffmpeg not found, skipping this test.")

Callers

nothing calls this directly

Calls 4

preprocessFunction · 0.85
from_paramsMethod · 0.80
from_enumMethod · 0.80
transcribeMethod · 0.45

Tested by

no test coverage detected