Skip to content

Commit

Permalink
[test] Skip pocketsphinx on Windows (future drop)
Browse files Browse the repository at this point in the history
  • Loading branch information
ftnext committed Apr 15, 2024
1 parent 5b3a8a0 commit 4f1dbc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-

import os
import sys
import unittest

import speech_recognition as sr
Expand All @@ -25,6 +26,7 @@ def test_recognizer_attributes(self):
self.assertEqual(r.phrase_threshold, 0.3)
self.assertEqual(r.non_speaking_duration, 0.5)

@unittest.skip(sys.platform.startswith("win"), "skip on Windows")
def test_sphinx_english(self):
r = sr.Recognizer()
with sr.AudioFile(self.AUDIO_FILE_EN) as source: audio = r.record(source)
Expand Down
2 changes: 2 additions & 0 deletions tests/test_special_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-

import os
import sys
import unittest

import speech_recognition as sr
Expand All @@ -12,6 +13,7 @@ def setUp(self):
self.AUDIO_FILE_EN = os.path.join(os.path.dirname(os.path.realpath(__file__)), "english.wav")
self.addTypeEqualityFunc(str, self.assertSameWords)

@unittest.skip(sys.platform.startswith("win"), "skip on Windows")
def test_sphinx_keywords(self):
r = sr.Recognizer()
with sr.AudioFile(self.AUDIO_FILE_EN) as source: audio = r.record(source)
Expand Down

0 comments on commit 4f1dbc5

Please sign in to comment.