Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
feat(lab encoder): add vggish for audio
Browse files Browse the repository at this point in the history
  • Loading branch information
jemmyshin committed Sep 2, 2019
1 parent d28ea17 commit 97bb6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnes/preprocessor/audio/vggish_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def apply(self, doc: 'gnes_pb2.Document') -> None:
super().apply(doc)

if doc.raw_bytes:
for chunks in enumerate(doc.chunks):
for chunks in doc.chunks:
chunks.blob.CopyFrom(array2blob(np.array(self.waveform_to_examples(blob2array(chunks.blob),
sample_rate=self.sample_rate), dtype=np.float32)))
else:
Expand Down

0 comments on commit 97bb6de

Please sign in to comment.