mirror of
https://github.com/csukuangfj/kaldifeat.git
synced 2025-08-09 18:12:17 +00:00
Release GIL for online feature extraction. (#37)
This commit is contained in:
parent
1a43b6117d
commit
48d96b9250
@ -22,9 +22,11 @@ void PybindOnlineFeatureTpl(py::module &m, const std::string &class_name,
|
||||
.def_property_readonly("num_frames_ready", &PyClass::NumFramesReady)
|
||||
.def("is_last_frame", &PyClass::IsLastFrame, py::arg("frame"))
|
||||
.def("get_frame", &PyClass::GetFrame, py::arg("frame"))
|
||||
.def("get_frames", &PyClass::GetFrames, py::arg("frames"))
|
||||
.def("get_frames", &PyClass::GetFrames, py::arg("frames"),
|
||||
py::call_guard<py::gil_scoped_release>())
|
||||
.def("accept_waveform", &PyClass::AcceptWaveform,
|
||||
py::arg("sampling_rate"), py::arg("waveform"))
|
||||
py::arg("sampling_rate"), py::arg("waveform"),
|
||||
py::call_guard<py::gil_scoped_release>())
|
||||
.def("input_finished", &PyClass::InputFinished);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user