Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
ipa_to_xvaarpabet: ignore espeak data copy
Browse files
resources/app/python/xvapitch/text/ipa_to_xvaarpabet.py
CHANGED
@@ -298,9 +298,9 @@ def _espeak_exe(base_dir, args: List, sync=False) -> List[str]:
|
|
298 |
# logging.debug("espeakng: executing %s", repr(cmd))
|
299 |
print("espeakng: executing %s", repr(" ".join(cmd)))
|
300 |
|
301 |
-
os.makedirs("/usr/share/espeak-ng-data", exist_ok=True)
|
302 |
-
if not os.path.exists("/usr/share/espeak-ng-data/phontab"):
|
303 |
-
|
304 |
# print(" ".join(cmd))
|
305 |
# print(f'F:/Speech/espeak/eSpeak_NG/espeak-ng.exe --path="F:/Speech/espeak/eSpeak_NG" -q -b 1 -v ro --ipa=1 "bună ziua. Ce mai faceți?"')
|
306 |
# print("---")
|
|
|
298 |
# logging.debug("espeakng: executing %s", repr(cmd))
|
299 |
print("espeakng: executing %s", repr(" ".join(cmd)))
|
300 |
|
301 |
+
# os.makedirs("/usr/share/espeak-ng-data", exist_ok=True)
|
302 |
+
# if not os.path.exists("/usr/share/espeak-ng-data/phontab"):
|
303 |
+
# shutil.copytree(f'{base_dir}/eSpeak_NG/espeak-ng-data', "/usr/share/espeak-ng-data", dirs_exist_ok=True)
|
304 |
# print(" ".join(cmd))
|
305 |
# print(f'F:/Speech/espeak/eSpeak_NG/espeak-ng.exe --path="F:/Speech/espeak/eSpeak_NG" -q -b 1 -v ro --ipa=1 "bună ziua. Ce mai faceți?"')
|
306 |
# print("---")
|