class_docstr: SingingGenerate class
  
  Examples:
      >>> import soundfile
      >>> svs = SingingGenerate("config.yml", "model.pth")
      >>> wav = svs("Hello World")[0]
      >>> soundfile.write("out.wav", wav.numpy(), svs.fs, "PCM_16")
class_docstr_tok: ["SingingGenerate","class","Examples",":",">",">",">","import","soundfile",">",">",">","svs","=","SingingGenerate","(","``","config.yml","''",",","``","model.pth","''",")",">",">",">","wav","=","svs","(","``","Hello","World","''",")","[","0","]",">",">",">","soundfile.write","(","``","out.wav","''",",","wav.numpy","(",")",",","svs.fs",",","``","PCM_16","''",")"]
docstr: Return speech is needed or not in the inference.
docstr_tok: ["Return","speech","is","needed","or","not","in","the","inference","."]
code: def use_speech(self) -> bool:
      """Return speech is needed or not in the inference."""
      return self.use_teacher_forcing or getattr(
          self.svs, "use_gst", False
      )
  
imports: import argparse
  import logging
  import shutil
  import sys
  import time
  from pathlib import Path
  from typing import Any, Dict, Optional, Sequence, Tuple, Union
  import numpy
  import soundfile
  import torch
  from typeguard import check_argument_types
  from espnet2.fileio.npy_scp import NpyScpWriter
  from espnet2.gan_svs.vits import VITS
  from espnet2.svs.singing_tacotron.singing_tacotron import singing_tacotron
  from espnet2.tasks.svs import SVSTask
  from espnet2.torch_utils.device_funcs import to_device
  from espnet2.torch_utils.set_all_random_seed import set_all_random_seed
  from espnet2.tts.utils import DurationCalculator
  from espnet2.utils import config_argparse
  from espnet2.utils.types import str2bool, str2triple_str, str_or_none
  from espnet.utils.cli_utils import get_commandline_args
label_desc: Use image node_id 4 for calling the SingingGenerate obj's underlying member method code with example usage: obj.use_speech() and returns: unknown