From f46a275b226f42bf82cc587fb5443ea39c6e4e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eren=20G=C3=B6lge?= Date: Tue, 6 Apr 2021 13:12:02 +0200 Subject: [PATCH] update docstring 2 --- TTS/utils/synthesizer.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/TTS/utils/synthesizer.py b/TTS/utils/synthesizer.py index cd6a6de2..ec6163fd 100644 --- a/TTS/utils/synthesizer.py +++ b/TTS/utils/synthesizer.py @@ -17,9 +17,14 @@ from TTS.tts.utils.text import make_symbols, phonemes, symbols class Synthesizer(object): def __init__(self, tts_checkpoint, tts_config, vocoder_checkpoint=None, vocoder_config=None, use_cuda=False): - """General TTS interface for inference. It takes a tts and a vocoder - model and synthesize speech from the provided text with a basic text - formatting. + """General 🐸 TTS interface for inference. It takes a tts and a vocoder + model and synthesize speech from the provided text. + + The text is divided into a list of sentences using `pysbd` and synthesize + speech on each sentence separately. + + If you have certain special characters in your text, you need to handle + them before providing the text to Synthesizer. TODO: handle multi-speaker and GST inference.