class_docstr: TODO: Add voice conversion and Capacitron support.
docstr: Check if the arguments are valid for the model.
docstr_tok: ["Check","if","the","arguments","are","valid","for","the","model","."]
code: def _check_arguments(
      self,
      speaker: str = None,
      language: str = None,
      speaker_wav: str = None,
      emotion: str = None,
      speed: float = None,
      **kwargs,
  ) -> None:
      """Check if the arguments are valid for the model."""
      # check for the coqui tts models
      if self.is_multi_speaker and (
          speaker is None and speaker_wav is None
      ):
          raise ValueError(
              "Model is multi-speaker but no `speaker` is provided."
          )
      if self.is_multi_lingual and language is None:
          raise ValueError(
              "Model is multi-lingual but no `language` is provided."
          )
      if (
          not self.is_multi_speaker
          and speaker is not None
          and "voice_dir" not in kwargs
      ):
          raise ValueError(
              "Model is not multi-speaker but `speaker` is provided."
          )
      if not self.is_multi_lingual and language is not None:
          raise ValueError(
              "Model is not multi-lingual but `language` is provided."
          )
      if not emotion is None and not speed is None:
          raise ValueError(
              "Emotion and speed can only be used with Coqui Studio models. Which is discontinued."
          )
  
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 14 for calling the TTS obj's underlying member method code with example usage: obj._check_arguments(speaker, language, speaker_wav, emotion, speed) without return types