def getSound(t, sound, sr=44100, fps=24):
  """
  Get part of the sound.
  :param t: float - time of the part
  :param sound: 1D array - sound data source
  :param sr: int - sample rate (total sample per second)
  :param fps: int - long of the sound part result is 1/fps
  """
  end = t * sr
  start = end - (sr / fps)
  return sound[int(start): int(end)]