at 22.05-pre 1.5 kB view raw
1diff --git a/phonemizer/backend/espeak.py b/phonemizer/backend/espeak.py 2index b4712bf..5628fd5 100644 3--- a/phonemizer/backend/espeak.py 4+++ b/phonemizer/backend/espeak.py 5@@ -82,10 +82,7 @@ class BaseEspeakBackend(BaseBackend): 6 if _ESPEAK_DEFAULT_PATH: 7 return _ESPEAK_DEFAULT_PATH 8 9- espeak = distutils.spawn.find_executable('espeak-ng') 10- if not espeak: # pragma: nocover 11- espeak = distutils.spawn.find_executable('espeak') 12- return espeak 13+ return "@espeak@" 14 15 @classmethod 16 def is_available(cls): 17diff --git a/phonemizer/backend/festival.py b/phonemizer/backend/festival.py 18index 3037be5..684ffff 100644 19--- a/phonemizer/backend/festival.py 20+++ b/phonemizer/backend/festival.py 21@@ -80,7 +80,7 @@ class FestivalBackend(BaseBackend): 22 if _FESTIVAL_DEFAULT_PATH: 23 return _FESTIVAL_DEFAULT_PATH 24 25- return distutils.spawn.find_executable('festival') 26+ return "@festival@" 27 28 @classmethod 29 def is_available(cls): 30diff --git a/test/test_punctuation.py b/test/test_punctuation.py 31index 6ed642a..08060df 100644 32--- a/test/test_punctuation.py 33+++ b/test/test_punctuation.py 34@@ -28,7 +28,7 @@ ESPEAK_143 = (EspeakBackend.version(as_tuple=True) >= (1, 49, 3)) 35 ESPEAK_150 = (EspeakBackend.version(as_tuple=True) >= (1, 50)) 36 37 # True if we are using festival>=2.5 38-FESTIVAL_25 = (FestivalBackend.version(as_tuple=True) >= (2, 5)) 39+FESTIVAL_25 = False 40 41 42 @pytest.mark.parametrize(