class_docstr: Base `tts` class. Every new `tts` model must inherit this.
  
  It defines common `tts` specific functions on top of `Model` implementation.
class_docstr_tok: ["Base","`","tts","`","class",".","Every","new","`","tts","`","model","must","inherit","this",".","It","defines","common","`","tts","`","specific","functions","on","top","of","`","Model","`","implementation","."]
code: def __init__(
      self,
      config: Coqpit,
      ap: "AudioProcessor",
      tokenizer: "TTSTokenizer",
      speaker_manager: SpeakerManager = None,
      language_manager: LanguageManager = None,
  ):
      super().__init__()
      self.config = config
      self.ap = ap
      self.tokenizer = tokenizer
      self.speaker_manager = speaker_manager
      self.language_manager = language_manager
      self._set_model_args(config)
  
imports: import os
  import random
  from typing import Dict, List, Tuple, Union
  import torch
  import torch.distributed
  from coqpit import Coqpit
  from torch import nn
  from torch.utils.data import DataLoader
  from torch.utils.data.sampler import WeightedRandomSampler
  from trainer.torch import DistributedSampler, DistributedSamplerWrapper
  from TTS.model import BaseTrainerModel
  from TTS.tts.datasets.dataset import TTSDataset
  from TTS.tts.utils.data import get_length_balancer_weights
  from TTS.tts.utils.languages import LanguageManager, get_language_balancer_weights
  from TTS.tts.utils.speakers import SpeakerManager, get_speaker_balancer_weights, get_speaker_manager
  from TTS.tts.utils.synthesis import synthesis
  from TTS.tts.utils.visual import plot_alignment, plot_spectrogram
label_desc: Use image node_id 1 to create a new BaseTTS object from inherited base classes: BaseTrainerModel with example: obj = BaseTTS(config, ap, tokenizer, speaker_manager, language_manager)