forked from coqui-ai/TTS
-
Notifications
You must be signed in to change notification settings - Fork 211
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Hi! Great project.
Currently the pySBD segmenter is hardcoded to english:
class Synthesizer(nn.Module):
def __init__(
self,
*,
tts_checkpoint: str | os.PathLike[Any] | None = None,
tts_config_path: str | os.PathLike[Any] | None = None,
tts_speakers_file: str | os.PathLike[Any] | None = None,
tts_languages_file: str | os.PathLike[Any] | None = None,
vocoder_checkpoint: str | os.PathLike[Any] | None = None,
vocoder_config: str | os.PathLike[Any] | None = None,
encoder_checkpoint: str | os.PathLike[Any] | None = None,
encoder_config: str | os.PathLike[Any] | None = None,
vc_checkpoint: str | os.PathLike[Any] | None = None,
vc_config: str | os.PathLike[Any] | None = None,
model_dir: str | os.PathLike[Any] | None = None,
voice_dir: str | os.PathLike[Any] | None = None,
use_cuda: bool = False,
) -> None:
# etc.
self.seg = self._get_segmenter("en")
It would be great if that parameter could be set somehow. I don't fully understand the api, so I can't confidently suggest an appropriate approach to achieve this, but maybe following the language
arg in the tts_to_file
call?
Thanks.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request