From c230cf0a97e85162bce610117b54daba3e884823 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sun, 5 Mar 2023 10:00:18 +0800 Subject: [PATCH] Fix building wheels for Windows (#81) --- sherpa-onnx/python/csrc/features.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sherpa-onnx/python/csrc/features.cc b/sherpa-onnx/python/csrc/features.cc index 4c58b3eb..c5601a2a 100644 --- a/sherpa-onnx/python/csrc/features.cc +++ b/sherpa-onnx/python/csrc/features.cc @@ -11,7 +11,7 @@ namespace sherpa_onnx { static void PybindFeatureExtractorConfig(py::module *m) { using PyClass = FeatureExtractorConfig; py::class_(*m, "FeatureExtractorConfig") - .def(py::init(), + .def(py::init(), py::arg("sampling_rate") = 16000, py::arg("feature_dim") = 80, py::arg("max_feature_vectors") = -1) .def_readwrite("sampling_rate", &PyClass::sampling_rate)