code: def get_wave_header(
      frame_input=b"", channels=1, sample_width=2, sample_rate=24000
  ):
      # This will create a wave header then append the frame input
      # It should be first on a streaming wav file
      # Other frames better should not have it (else you will hear some artifacts each chunk start)
      import wave
  
      wav_buf = io.BytesIO()
      with wave.open(wav_buf, "wb") as vfout:
          vfout.setnchannels(channels)
          vfout.setsampwidth(sample_width)
          vfout.setframerate(sample_rate)
          vfout.writeframes(frame_input)
  
      wav_buf.seek(0)
      return wav_buf.read()
  
file_path: h2ogpt/src/tts_utils.py
imports: import io
  import librosa
  import numpy
  import pydub
  from src.utils import have_pyrubberband
label_desc: Use image node_id 1 for calling a global function with example usage: get_wave_header(frame_input, channels, sample_width, sample_rate) and returns: wav_buf