code: def test_generate_speech():
      os.environ["CUDA_HOME"] = "/usr/local/cuda-11.7"
      from src.tts_coqui import (
          generate_speech,
          get_xtt,
          get_latent,
          get_role_to_wave_map,
      )
  
      chatbot_role = "Female AI Assistant"
      model, supported_languages = get_xtt()
      latent = get_latent(
          get_role_to_wave_map()[chatbot_role], model=model
      )
  
      response = "I am an AI assistant.  What do you want from me?  I am very busy."
      for char in response:
          generate_speech(
              char,
              model=model,
              supported_languages=supported_languages,
              latent=latent,
          )
  
file_path: h2ogpt/tests/test_tts.py
imports: import os
  import pytest
  from tests.utils import wrap_test_forked
  from src.tts_sentence_parsing import init_sentence_state
  from tests.test_sentence_parsing import bot_list
label_desc: Use image node_id 2 for calling a global function with example usage: test_generate_speech() without return types