mirror of https://github.com/coqui-ai/TTS.git
don't print if quiet=True
This commit is contained in:
parent
6f1cba2f81
commit
39aeeedaec
|
@ -288,10 +288,13 @@ class Synthesizer(nn.Module):
|
||||||
"You need to define either `text` (for sythesis) or a `reference_wav` (for voice conversion) to use the Coqui TTS API."
|
"You need to define either `text` (for sythesis) or a `reference_wav` (for voice conversion) to use the Coqui TTS API."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
quiet = kwargs.pop('quiet', False)
|
||||||
|
|
||||||
if text:
|
if text:
|
||||||
sens = self.split_into_sentences(text)
|
sens = self.split_into_sentences(text)
|
||||||
print(" > Text splitted to sentences.")
|
if not quiet:
|
||||||
print(sens)
|
print(" > Text splitted to sentences.")
|
||||||
|
print(sens)
|
||||||
|
|
||||||
# handle multi-speaker
|
# handle multi-speaker
|
||||||
if "voice_dir" in kwargs:
|
if "voice_dir" in kwargs:
|
||||||
|
@ -488,6 +491,7 @@ class Synthesizer(nn.Module):
|
||||||
# compute stats
|
# compute stats
|
||||||
process_time = time.time() - start_time
|
process_time = time.time() - start_time
|
||||||
audio_time = len(wavs) / self.tts_config.audio["sample_rate"]
|
audio_time = len(wavs) / self.tts_config.audio["sample_rate"]
|
||||||
print(f" > Processing time: {process_time}")
|
if not quiet:
|
||||||
print(f" > Real-time factor: {process_time / audio_time}")
|
print(f" > Processing time: {process_time}")
|
||||||
|
print(f" > Real-time factor: {process_time / audio_time}")
|
||||||
return wavs
|
return wavs
|
||||||
|
|
Loading…
Reference in New Issue