mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-12 06:27:12 +03:00
move to new cspot
This commit is contained in:
12
components/spotify/cspot/bell/external/opus/training/txt2hdf5.py
vendored
Normal file
12
components/spotify/cspot/bell/external/opus/training/txt2hdf5.py
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import numpy as np
|
||||
import h5py
|
||||
import sys
|
||||
|
||||
data = np.loadtxt(sys.argv[1], dtype='float32')
|
||||
h5f = h5py.File(sys.argv[2], 'w');
|
||||
h5f.create_dataset('data', data=data)
|
||||
h5f.close()
|
||||
Reference in New Issue
Block a user