ttslearn.util.trim_silence

ttslearn.util.trim_silence(feats, labels, start_sec=0.05, end_sec=0.1, shift_sec=0.005)[source]

Trim silence from input features.

Parameters
  • feats (np.ndarray) – input features

  • labels (np.ndarray) – labels

  • start_sec (float, optional) – start time of the trim

  • end_sec (float, optional) – end time of the trim

  • shift_sec (float, optional) – shift of the trim

Returns

trimmed features

Return type

np.ndarray