google / visqol

Perceptual Quality Estimator for speech and audio
Apache License 2.0
641 stars 118 forks source link

float32 numpy arrays don't work with Python API #67

Open mchinen opened 2 years ago

mchinen commented 2 years ago

VisqolApi::Measure() when accessed through the python interface requires float64 ndarrays and will throw a type error on float32 ndarrays. Measure() is a native function that pybind11 translates. This may be a python casting/typing issue. The workaround is simple: cast to float64.