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

Function test_set_language

tests/params_export_test.py:91–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89
90
91def test_set_language():
92 params = w.api.Params.from_enum(w.api.StrategyType.SAMPLING_GREEDY)
93 for lang in ["en", "de", "auto", ""]:
94 assert params.language != ""
95 params_with_lang = params.with_language(lang)
96 print(lang, params_with_lang.language)
97 assert params_with_lang.language == lang

Callers

nothing calls this directly

Calls 2

from_enumMethod · 0.80
with_languageMethod · 0.80

Tested by

no test coverage detected