r9y9 / pysptk

A python wrapper for Speech Signal Processing Toolkit (SPTK).
http://pysptk.readthedocs.io/en/latest/
Other
441 stars 79 forks source link

Support float32 and float64 conversion #48

Closed r9y9 closed 7 years ago

r9y9 commented 7 years ago

Sometimes It's frustrating that we have to make sure the array to be np.float64-typed, e.g.

pysptk.mcep(x.astype(np.float64), order=24, alpha=0.41).astype(np.float32) # I like float32, so I need to convert it again

Maybe we need a function wrapper that automatically does this kind of type conversions.