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:
parent
5d00764f95
commit
d666b1bba5
@ -117,7 +117,7 @@ def wav_to_features(sample_rate, clip_duration_ms, window_size_ms,
|
|||||||
for value in features.flatten():
|
for value in features.flatten():
|
||||||
if i == 0:
|
if i == 0:
|
||||||
f.write('\n ')
|
f.write('\n ')
|
||||||
f.write(' ,%f' % value)
|
f.write('%f, ' % value)
|
||||||
i = (i + 1) % 10
|
i = (i + 1) % 10
|
||||||
f.write('\n};\n')
|
f.write('\n};\n')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user