Add Python API and Python examples for audio tagging (#753)

This commit is contained in:
Fangjun Kuang
2024-04-11 11:12:48 +08:00
committed by GitHub
parent 904a3cc8a9
commit 34d70a259f
12 changed files with 245 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ static void PybindSpeakerEmbeddingExtractorConfig(py::module *m) {
using PyClass = SpeakerEmbeddingExtractorConfig;
py::class_<PyClass>(*m, "SpeakerEmbeddingExtractorConfig")
.def(py::init<>())
.def(py::init<const std::string &, int32_t, bool, const std::string>(),
.def(py::init<const std::string &, int32_t, bool, const std::string &>(),
py::arg("model"), py::arg("num_threads") = 1,
py::arg("debug") = false, py::arg("provider") = "cpu")
.def_readwrite("model", &PyClass::model)