class_docstr: TODO: Add voice conversion and Capacitron support.
docstr: Load one of 🐸TTS models by name.
  
  Args:
      model_name (str): Model name to load. You can list models by ```tts.models```.
      gpu (bool, optional): Enable/disable GPU. Some models might be too slow on CPU. Defaults to False.
  
  TODO: Add tests
docstr_tok: ["Load","one","of","\ud83d\udc38TTS","models","by","name",".","Args",":","model_name","(","str",")",":","Model","name","to","load",".","You","can","list","models","by","``","`","tts.models","``","`",".","gpu","(","bool",",","optional",")",":","Enable\/disable","GPU",".","Some","models","might","be","too","slow","on","CPU",".","Defaults","to","False",".","TODO",":","Add","tests"]
code: def load_tts_model_by_name(self, model_name: str, gpu: bool = False):
      """Load one of 🐸TTS models by name.
  
      Args:
          model_name (str): Model name to load. You can list models by ```tts.models```.
          gpu (bool, optional): Enable/disable GPU. Some models might be too slow on CPU. Defaults to False.
  
      TODO: Add tests
      """
      self.synthesizer = None
      self.model_name = model_name
  
      (
          model_path,
          config_path,
          vocoder_path,
          vocoder_config_path,
          model_dir,
      ) = self.download_model_by_name(model_name)
  
      # init synthesizer
      # None values are fetch from the model
      self.synthesizer = Synthesizer(
          tts_checkpoint=model_path,
          tts_config_path=config_path,
          tts_speakers_file=None,
          tts_languages_file=None,
          vocoder_checkpoint=vocoder_path,
          vocoder_config=vocoder_config_path,
          encoder_checkpoint=None,
          encoder_config=None,
          model_dir=model_dir,
          use_cuda=gpu,
      )
  
imports: import tempfile
  import warnings
  from pathlib import Path
  from typing import Union
  import numpy
  from torch import nn
  from TTS.utils.audio.numpy_transforms import save_wav
  from TTS.utils.manage import ModelManager
  from TTS.utils.synthesizer import Synthesizer
  from TTS.config import load_config
label_desc: Use image node_id 12 for calling the TTS obj's underlying member method code with example usage: obj.load_tts_model_by_name(model_name, gpu) without return types