class_docstr: Implementation for https://arxiv.org/pdf/1809.08895.pdf
class_docstr_tok: ["Implementation","for","https",":","\/\/arxiv.org\/pdf\/1809.08895.pdf"]
code: def build_model(cls, args, task):
      embed_speaker = task.get_speaker_embeddings(args)
      encoder = TTSTransformerEncoder(
          args, task.src_dict, embed_speaker
      )
      decoder = TTSTransformerDecoder(args, task.src_dict)
      return cls(encoder, decoder)
  
imports: import logging
  from typing import List, Optional
  import torch
  from torch import nn
  from fairseq import utils
  from fairseq.data.data_utils import lengths_to_padding_mask
  from fairseq.models import FairseqEncoder, FairseqEncoderDecoderModel, FairseqIncrementalDecoder, register_model, register_model_architecture
  from fairseq.models.text_to_speech.hub_interface import TTSHubInterface
  from fairseq.models.text_to_speech.tacotron2 import Postnet, Prenet
  from fairseq.modules import FairseqDropout, LayerNorm, PositionalEmbedding, TransformerDecoderLayer, TransformerEncoderLayer
label_desc: Use image node_id 5 for calling the TTSTransformerModel obj's underlying member method code with example usage: obj.build_model(cls, args, task) and returns: cls