docstr: Generate audio array from semantic input.
  
  Args:
      semantic_tokens: semantic token output from `text_to_semantic`
      history_prompt: history choice for audio cloning
      temp: generation temperature (1.0 more diverse, 0.0 more conservative)
  
  Returns:
      numpy audio array at sample frequency 24khz
docstr_tok: ["Generate","audio","array","from","semantic","input",".","Args",":","semantic_tokens",":","semantic","token","output","from","`","text_to_semantic","`","history_prompt",":","history","choice","for","audio","cloning","temp",":","generation","temperature","(","1.0","more","diverse",",","0.0","more","conservative",")","Returns",":","numpy","audio","array","at","sample","frequency","24khz"]
code: def semantic_to_waveform(
      self,
      semantic_tokens: np.ndarray,
      history_prompt: Optional[str] = None,
      temp: float = 0.7,
      base=None,
  ):
      """Generate audio array from semantic input.
  
      Args:
          semantic_tokens: semantic token output from `text_to_semantic`
          history_prompt: history choice for audio cloning
          temp: generation temperature (1.0 more diverse, 0.0 more conservative)
  
      Returns:
          numpy audio array at sample frequency 24khz
      """
      x_coarse_gen = generate_coarse(
          semantic_tokens,
          self,
          history_prompt=history_prompt,
          temp=temp,
          base=base,
      )
      x_fine_gen = generate_fine(
          x_coarse_gen,
          self,
          history_prompt=history_prompt,
          temp=0.5,
          base=base,
      )
      audio_arr = codec_decode(x_fine_gen, self)
      return audio_arr, x_coarse_gen, x_fine_gen
  
imports: import os
  from dataclasses import dataclass
  from typing import Optional
  import numpy
  from coqpit import Coqpit
  from encodec import EncodecModel
  from transformers import BertTokenizer
  from TTS.tts.layers.bark.inference_funcs import codec_decode, generate_coarse, generate_fine, generate_text_semantic, generate_voice, load_voice
  from TTS.tts.layers.bark.load_model import load_model
  from TTS.tts.layers.bark.model import GPT
  from TTS.tts.layers.bark.model_fine import FineGPT
  from TTS.tts.models.base_tts import BaseTTS
label_desc: Use image node_id 6 for calling the Bark obj's underlying member method code with example usage: obj.semantic_to_waveform(semantic_tokens, history_prompt, temp, base) and returns: audio_arr,  x_coarse_gen,  x_fine_gen