code: def text_to_speech(text, sr=16000):
      processor, model, vocoder, speaker_embedding = get_speech_model()
  
      inputs = processor(text=text, return_tensors="pt")
      speech = model.generate_speech(
          inputs["input_ids"], speaker_embedding, vocoder=vocoder
      )
  
      sf.write("speech.wav", speech.numpy(), samplerate=sr)
  
imports: from __future__ import annotations
  import base64
  import io
  import time
  from io import BytesIO
  import numpy
  import scipy
  import wavio
  import soundfile
  import torch
  import librosa
  from src.tts_sentence_parsing import init_sentence_state, get_sentence
  from src.tts_utils import prepare_speech, get_no_audio, chunk_speed_change
label_desc: Use image node_id 13 for calling a global function with example usage: text_to_speech(text, sr) without return types