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)
|
||||
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"")
|
||||
if not sync:
|
||||
p.stdout.close()
|
||||
|
@ -123,7 +127,7 @@ class ESpeak(BasePhonemizer):
|
|||
args.append("--ipa=1")
|
||||
if tie:
|
||||
args.append("--tie=%s" % tie)
|
||||
args.append(text)
|
||||
args.append('"' + text + '"')
|
||||
# compute phonemes
|
||||
phonemes = ""
|
||||
for line in _espeak_exe(self._ESPEAK_LIB, args, sync=True):
|
||||
|
|
Loading…
Reference in New Issue