class_docstr: TODO: Add voice conversion and Capacitron support.
docstr: Load a model from a path.
  
  Args:
      model_path (str): Path to the model checkpoint.
      config_path (str): Path to the model config.
      vocoder_path (str, optional): Path to the vocoder checkpoint. Defaults to None.
      vocoder_config (str, optional): Path to the vocoder config. Defaults to None.
      gpu (bool, optional): Enable/disable GPU. Some models might be too slow on CPU. Defaults to False.
docstr_tok: ["Load","a","model","from","a","path",".","Args",":","model_path","(","str",")",":","Path","to","the","model","checkpoint",".","config_path","(","str",")",":","Path","to","the","model","config",".","vocoder_path","(","str",",","optional",")",":","Path","to","the","vocoder","checkpoint",".","Defaults","to","None",".","vocoder_config","(","str",",","optional",")",":","Path","to","the","vocoder","config",".","Defaults","to","None",".","gpu","(","bool",",","optional",")",":","Enable\/disable","GPU",".","Some","models","might","be","too","slow","on","CPU",".","Defaults","to","False","."]
code: def load_tts_model_by_path(
      self,
      model_path: str,
      config_path: str,
      vocoder_path: str = None,
      vocoder_config: str = None,
      gpu: bool = False,
  ):
      """Load a model from a path.
  
      Args:
          model_path (str): Path to the model checkpoint.
          config_path (str): Path to the model config.
          vocoder_path (str, optional): Path to the vocoder checkpoint. Defaults to None.
          vocoder_config (str, optional): Path to the vocoder config. Defaults to None.
          gpu (bool, optional): Enable/disable GPU. Some models might be too slow on CPU. Defaults to False.
      """
  
      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,
          encoder_checkpoint=None,
          encoder_config=None,
          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 13 for calling the TTS obj's underlying member method code with example usage: obj.load_tts_model_by_path(model_path, config_path, vocoder_path, vocoder_config, gpu) without return types