class_docstr: Speech2Text class
class_docstr_tok: ["Speech2Text","class"]
code: def __init__(
      self,
      model_tag: str = "base",
      model_dir: str = "./models",
      device: str = "cpu",
  ):
      assert check_argument_types()
  
      self.model = whisper.load_model(
          name=model_tag, download_root=model_dir, device=device
      )
  
imports: import argparse
  import logging
  import os
  import sys
  from distutils.version import LooseVersion
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Sequence, Tuple, Union
  import torch
  import whisper
  from typeguard import check_argument_types
  from espnet2.fileio.datadir_writer import DatadirWriter
  from espnet2.torch_utils.set_all_random_seed import set_all_random_seed
  from espnet2.utils import config_argparse
  from espnet2.utils.nested_dict_action import NestedDictAction
  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 1 to create a new Speech2Text object  with example: obj = Speech2Text(model_tag, model_dir, device)