code: def get_speech_segments(uttid, wav, vad):
      """
      Compute and print the segments for the given uttid. It is in the format:
      <segment-id> <utt-id> <start-time> <end-time>
      """
      audio, sample_rate = read_wave(wav)
      frames = frame_generator(30, audio, sample_rate)
      frames = list(frames)
      segments = vad_segments(sample_rate, 30, 300, vad, frames)
      for segment in segments:
          start = float("{:.2f}".format(segment[0]))
          end = float("{:.2f}".format(segment[1]))
          segment_id = "{}_{}_{}".format(
              uttid,
              "{:.0f}".format(100 * start).zfill(6),
              "{:.0f}".format(100 * end).zfill(6),
          )
          print("{} {} {} {}".format(segment_id, uttid, start, end))
      return
  
file_path: espnet/egs/libri_css/asr1/local/segmentation/apply_webrtcvad.py
imports: import argparse
  import collections
  import contextlib
  import os
  import sys
  import wave
  import webrtcvad
label_desc: Use image node_id 8 for calling a global function with example usage: get_speech_segments(uttid, wav, vad) without return types