2023-01-20 10:41:00 +00:00
|
|
|
diff --git a/espeak_phonemizer/__init__.py b/espeak_phonemizer/__init__.py
|
2023-04-29 16:46:19 +00:00
|
|
|
index 44cd943..adeaeba 100644
|
2023-01-20 10:41:00 +00:00
|
|
|
--- a/espeak_phonemizer/__init__.py
|
|
|
|
+++ b/espeak_phonemizer/__init__.py
|
2023-04-29 16:46:19 +00:00
|
|
|
@@ -150,11 +150,7 @@ class Phonemizer:
|
2023-01-20 10:41:00 +00:00
|
|
|
# Already initialized
|
|
|
|
return
|
|
|
|
|
|
|
|
- try:
|
|
|
|
- self.lib_espeak = ctypes.cdll.LoadLibrary("libespeak-ng.so")
|
|
|
|
- except OSError:
|
|
|
|
- # Try .so.1
|
|
|
|
- self.lib_espeak = ctypes.cdll.LoadLibrary("libespeak-ng.so.1")
|
|
|
|
+ self.lib_espeak = ctypes.cdll.LoadLibrary("@libespeak_ng@")
|
|
|
|
|
|
|
|
sample_rate = self.lib_espeak.espeak_Initialize(
|
|
|
|
Phonemizer.AUDIO_OUTPUT_SYNCHRONOUS, 0, None, 0
|