正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -11,7 +11,7 @@ namespace sherpa_onnx { | @@ -11,7 +11,7 @@ namespace sherpa_onnx { | ||
| 11 | static void PybindFeatureExtractorConfig(py::module *m) { | 11 | static void PybindFeatureExtractorConfig(py::module *m) { |
| 12 | using PyClass = FeatureExtractorConfig; | 12 | using PyClass = FeatureExtractorConfig; |
| 13 | py::class_<PyClass>(*m, "FeatureExtractorConfig") | 13 | py::class_<PyClass>(*m, "FeatureExtractorConfig") |
| 14 | - .def(py::init<float, int32_t, int32_t>(), | 14 | + .def(py::init<int32_t, int32_t, int32_t>(), |
| 15 | py::arg("sampling_rate") = 16000, py::arg("feature_dim") = 80, | 15 | py::arg("sampling_rate") = 16000, py::arg("feature_dim") = 80, |
| 16 | py::arg("max_feature_vectors") = -1) | 16 | py::arg("max_feature_vectors") = -1) |
| 17 | .def_readwrite("sampling_rate", &PyClass::sampling_rate) | 17 | .def_readwrite("sampling_rate", &PyClass::sampling_rate) |
-
请 注册 或 登录 后发表评论