Skip to content

Commit

Permalink
feat: STT lang detector
Browse files Browse the repository at this point in the history
companion to OpenVoiceOS/ovos-plugin-manager#289

allow lang detection without initing 2 models
  • Loading branch information
JarbasAl committed Nov 24, 2024
1 parent 43a84f9 commit f4f7028
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,5 @@ def test_faster_whisper_stt_audiodata2array(audio_data):
assert array.dtype == np.float32


def test_faster_whisper_stt_invalid_model():
stt = FasterWhisperSTT(config={"model": "invalid_model"})
assert stt.config["model"] == "small"


def test_faster_whisper_lang_classifier_invalid_model():
classifier = FasterWhisperLangClassifier(config={"model": "invalid_model"})
assert classifier.config["model"] == "small"

if __name__ == "__main__":
pytest.main()

0 comments on commit f4f7028

Please sign in to comment.