Model_path, config_path, model_item = model_manager.download_model("tts_models/en/ljspeech/tacotron2-DDC") Then download one of the pre-trained models (we can also train our own model, buttttt it takes time and resources) path = "/path/to/pip/site-packages/TTS/.models.json" And for that, we need multiple steps.įirst import the modules: # import all the modules that we will need to useįrom import ModelManagerįrom import Synthesizer The next step will be to create a python project and integrate the TTS module inside, so you can easily integrate that into any python project that you can have. It will produce audio that we can use and listen to. We can start playing with it by typing for example: tts -text "Hello from a machine" -out_path. We will install it simply by typing: pip install TTS You can install it with python pip3 or direct from the source. Let’s start here by exploring the package that you can find here: We will maybe explore more packages later. So there are really interesting text-to-speech packages that you can use for your own project, we have chosen to discover coqui in this series of 2 articles.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |