We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a11e359 commit 1316719Copy full SHA for 1316719
sherpa-onnx/csrc/vad-model.cc
@@ -22,18 +22,22 @@
22
namespace sherpa_onnx {
23
24
std::unique_ptr<VadModel> VadModel::Create(const VadModelConfig &config) {
25
+#if SHERPA_ONNX_ENABLE_RKNN
26
if (config.provider == "rknn") {
27
return std::make_unique<SileroVadModelRknn>(config);
28
}
29
+#endif
30
return std::make_unique<SileroVadModel>(config);
31
32
33
template <typename Manager>
34
std::unique_ptr<VadModel> VadModel::Create(Manager *mgr,
35
const VadModelConfig &config) {
36
37
38
return std::make_unique<SileroVadModelRknn>(mgr, config);
39
40
41
return std::make_unique<SileroVadModel>(mgr, config);
42
43
0 commit comments