2020-06-08 14:27:01 +00:00
|
|
|
diff --git a/phonemizer/backend/espeak.py b/phonemizer/backend/espeak.py
|
2021-03-08 00:04:51 +00:00
|
|
|
index b4712bf..5628fd5 100644
|
2020-06-08 14:27:01 +00:00
|
|
|
--- a/phonemizer/backend/espeak.py
|
|
|
|
+++ b/phonemizer/backend/espeak.py
|
2021-03-08 00:04:51 +00:00
|
|
|
@@ -82,10 +82,7 @@ class BaseEspeakBackend(BaseBackend):
|
2020-06-08 14:27:01 +00:00
|
|
|
if _ESPEAK_DEFAULT_PATH:
|
|
|
|
return _ESPEAK_DEFAULT_PATH
|
|
|
|
|
|
|
|
- espeak = distutils.spawn.find_executable('espeak-ng')
|
|
|
|
- if not espeak: # pragma: nocover
|
|
|
|
- espeak = distutils.spawn.find_executable('espeak')
|
|
|
|
- return espeak
|
|
|
|
+ return "@espeak@"
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def is_available(cls):
|
|
|
|
diff --git a/phonemizer/backend/festival.py b/phonemizer/backend/festival.py
|
2021-03-08 00:04:51 +00:00
|
|
|
index 3037be5..684ffff 100644
|
2020-06-08 14:27:01 +00:00
|
|
|
--- a/phonemizer/backend/festival.py
|
|
|
|
+++ b/phonemizer/backend/festival.py
|
2021-03-08 00:04:51 +00:00
|
|
|
@@ -80,7 +80,7 @@ class FestivalBackend(BaseBackend):
|
2020-06-08 14:27:01 +00:00
|
|
|
if _FESTIVAL_DEFAULT_PATH:
|
|
|
|
return _FESTIVAL_DEFAULT_PATH
|
|
|
|
|
|
|
|
- return distutils.spawn.find_executable('festival')
|
|
|
|
+ return "@festival@"
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def is_available(cls):
|
2021-03-08 00:04:51 +00:00
|
|
|
diff --git a/test/test_punctuation.py b/test/test_punctuation.py
|
|
|
|
index 6ed642a..08060df 100644
|
|
|
|
--- a/test/test_punctuation.py
|
|
|
|
+++ b/test/test_punctuation.py
|
|
|
|
@@ -28,7 +28,7 @@ ESPEAK_143 = (EspeakBackend.version(as_tuple=True) >= (1, 49, 3))
|
|
|
|
ESPEAK_150 = (EspeakBackend.version(as_tuple=True) >= (1, 50))
|
|
|
|
|
|
|
|
# True if we are using festival>=2.5
|
|
|
|
-FESTIVAL_25 = (FestivalBackend.version(as_tuple=True) >= (2, 5))
|
|
|
|
+FESTIVAL_25 = False
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.parametrize(
|