code: def text_to_seqvec(text, CONFIG):
      text_cleaner = [CONFIG.text_cleaner]
      # text ot phonemes to sequence vector
      if CONFIG.use_phonemes:
          seq = np.asarray(
              phoneme_to_sequence(
                  text,
                  text_cleaner,
                  CONFIG.phoneme_language,
                  CONFIG.enable_eos_bos_chars,
                  tp=CONFIG.characters
                  if "characters" in CONFIG.keys()
                  else None,
                  add_blank=CONFIG["add_blank"]
                  if "add_blank" in CONFIG.keys()
                  else False,
              ),
              dtype=np.int32,
          )
      else:
          seq = np.asarray(
              text_to_sequence(
                  text,
                  text_cleaner,
                  tp=CONFIG.characters
                  if "characters" in CONFIG.keys()
                  else None,
                  add_blank=CONFIG["add_blank"]
                  if "add_blank" in CONFIG.keys()
                  else False,
              ),
              dtype=np.int32,
          )
      return seq
  
file_path: TTS/TTS/tts/utils/synthesis.py
imports: import pkg_resources
  import torch
  import numpy
  from .text import text_to_sequence, phoneme_to_sequence
label_desc: Use image node_id 1 for calling a global function with example usage: text_to_seqvec(text, CONFIG) and returns: seq