Silero Models provides a collection of pre-trained enterprise-grade Text-to-Speech (TTS) models primarily focused on Russian and CIS languages, as well as speech-to-text models. It leverages PyTorch for model inference, offering high-quality and fast speech generation. The library is actively maintained with frequent updates, currently at version 0.5.5, with a focus on expanding language support and model quality.
pip install torch torchaudio silero soundfileVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to load a pre-trained Silero TTS model using `torch.hub.load` and synthesize speech from text. It uses the 'v5_ru' Russian model with a specific speaker. Make sure `torch`, `torchaudio`, and `soundfile` are installed as they are crucial prerequisites, even if not direct dependencies of the `silero` PyPI package itself.
Migrate to using `v5_ru` or `v5_cis_*` model identifiers. Refer to the official GitHub repository's `models.yml` or quickstart for current supported model IDs and languages.
Always install `torchaudio` explicitly alongside `silero` using `pip install torchaudio` or include it in your requirements file.
Always install all necessary dependencies explicitly: `pip install torch torchaudio silero soundfile`.
Review the GNU AGPL 3.0 license agreement to ensure compliance with its terms, especially if using Silero Models in a commercial or distribution context.