google / visqol

Perceptual Quality Estimator for speech and audio
Apache License 2.0
683 stars 124 forks source link

how to use python api #114

Open Yutong-gannis opened 3 months ago

Yutong-gannis commented 3 months ago
TypeError: Measure(): incompatible function arguments. The following argument types are supported:
    1. (self: visqol.visqol_lib_py.VisqolApi, arg0: Span[float], arg1: Span[float]) -> Visqol::SimilarityResultMsg

Invoked with: <visqol.visqol_lib_py.VisqolApi object at 0x7f3ba3280c70>, 'DUMMY1/SP02-OTR002-02-B-057.wav', 'result.wav'

I met with this problem when compute mos

JozefColdenhoff commented 3 months ago

I also ran into this error. Converting the numpy arrays to float64 solved the problem for me.