Update wav_to_features.py

Remove the leading comma in the generated float array. Withi this leading comma, the generated C code can't be compiled.
This commit is contained in:
Judd 2020-02-11 18:32:03 +08:00 committed by GitHub
parent 5d00764f95
commit d666b1bba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@ def wav_to_features(sample_rate, clip_duration_ms, window_size_ms,
for value in features.flatten():
if i == 0:
f.write('\n ')
f.write(' ,%f' % value)
f.write('%f, ' % value)
i = (i + 1) % 10
f.write('\n};\n')