mirror of https://github.com/coqui-ai/TTS.git
Fix espeak wrapper cmd call
This commit is contained in:
parent
4894998e6b
commit
3b63d713b9
|
@ -29,7 +29,11 @@ def _espeak_exe(espeak_lib: str, args: List, sync=False) -> List[str]:
|
||||||
]
|
]
|
||||||
cmd.extend(args)
|
cmd.extend(args)
|
||||||
logging.debug("espeakng: executing %s" % repr(cmd))
|
logging.debug("espeakng: executing %s" % repr(cmd))
|
||||||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
p = subprocess.Popen(
|
||||||
|
cmd,
|
||||||
|
stdout=subprocess.PIPE,
|
||||||
|
stderr=subprocess.STDOUT,
|
||||||
|
)
|
||||||
res = iter(p.stdout.readline, b"")
|
res = iter(p.stdout.readline, b"")
|
||||||
if not sync:
|
if not sync:
|
||||||
p.stdout.close()
|
p.stdout.close()
|
||||||
|
@ -123,7 +127,7 @@ class ESpeak(BasePhonemizer):
|
||||||
args.append("--ipa=1")
|
args.append("--ipa=1")
|
||||||
if tie:
|
if tie:
|
||||||
args.append("--tie=%s" % tie)
|
args.append("--tie=%s" % tie)
|
||||||
args.append(text)
|
args.append('"' + text + '"')
|
||||||
# compute phonemes
|
# compute phonemes
|
||||||
phonemes = ""
|
phonemes = ""
|
||||||
for line in _espeak_exe(self._ESPEAK_LIB, args, sync=True):
|
for line in _espeak_exe(self._ESPEAK_LIB, args, sync=True):
|
||||||
|
|
Loading…
Reference in New Issue