class_docstr: Direct speech-to-speech translation model with Conformer encoder + MT Transformer decoder + TTS Transformer decoder
class_docstr_tok: ["Direct","speech-to-speech","translation","model","with","Conformer","encoder","+","MT","Transformer","decoder","+","TTS","Transformer","decoder"]
code: def build_decoder(cls, args):
      _args = copy.deepcopy(args)
      _args.encoder_embed_dim = args.decoder_embed_dim
  
      if args.synthesizer == "transformer":
          return TTSTransformerDecoder(_args, None, padding_idx=1)
      else:
          raise NotImplementedError(args.synthesizer)
  
file_path: fairseq/fairseq/models/speech_to_speech/s2s_conformer_translatotron2.py
imports: import copy
  import logging
  from fairseq.models import FairseqEncoderModel, FairseqLanguageModel, register_model, register_model_architecture
  from fairseq.models.speech_to_speech.modules.ctc_decoder import CTCDecoder
  from fairseq.models.speech_to_speech.modules.transformer_encoder import TransformerEncoderNoEmb
  from fairseq.models.speech_to_speech.s2s_conformer import S2SpecTConformerModel
  from fairseq.models.speech_to_speech.s2s_conformer_unity import multitask_text_transformer_decoder_arch
  from fairseq.models.speech_to_speech.s2s_transformer import base_multitask_text_transformer_decoder_arch, s2spect_architecture_base
  from fairseq.models.text_to_speech import TTSTransformerDecoder
  from fairseq.models.transformer import TransformerDecoder, TransformerModelBase
label_desc: Use image node_id 3 for calling the S2SpecT2ConformerModel obj's underlying member method code with example usage: obj.build_decoder(cls, args) and returns: TTSTransformerDecoder