Skip to content
Permalink
Browse files

fix(audio preprocessor): filter audio with zero length

  • Loading branch information...
jemmyshin committed Aug 12, 2019
1 parent 36babba commit b0f22d0433704727890978a7bd26d939f865ac11
Showing with 2 additions and 1 deletion.
  1. +2 −1 gnes/preprocessor/helper.py
@@ -95,7 +95,8 @@ def get_audio(buffer_data, sample_rate, interval,
# has multiple channels, do average
if len(data.shape) == 2:
data = np.mean(data, axis=1)
audio_list.append(data)
if data.shape[0] != 0:
audio_list.append(data)

start_time = end_time

0 comments on commit b0f22d0

Please sign in to comment.
You can’t perform that action at this time.