Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions sherpa-onnx/csrc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ if(SHERPA_ONNX_ENABLE_AXERA)
./axera/offline-sense-voice-model-axera.cc
./axera/utils.cc
)
if(SHERPA_ONNX_ENABLE_TTS)
list(APPEND sources
./axera/offline-tts-kokoro-model-axera.cc
)
endif()
endif()

if(SHERPA_ONNX_ENABLE_AXCL)
Expand All @@ -223,6 +228,11 @@ if(SHERPA_ONNX_ENABLE_AXCL)
./axcl/offline-sense-voice-model-axcl.cc
./axcl/utils.cc
)
if(SHERPA_ONNX_ENABLE_TTS)
list(APPEND sources
./axcl/offline-tts-kokoro-model-axcl.cc
)
endif()
endif()

if(SHERPA_ONNX_ENABLE_RKNN OR SHERPA_ONNX_ENABLE_ASCEND_NPU OR SHERPA_ONNX_ENABLE_QNN OR SHERPA_ONNX_ENABLE_AXERA OR SHERPA_ONNX_ENABLE_AXCL)
Expand Down
5 changes: 5 additions & 0 deletions sherpa-onnx/csrc/axcl/axcl-model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,11 @@ bool AxclModel::SetInputTensorData(const std::string &name, const int32_t *p,
return impl_->SetInputTensorData(name, p, n);
}

bool AxclModel::SetInputTensorData(const std::string &name, const uint8_t *p,
int32_t n) const {
return impl_->SetInputTensorData(name, p, n);
}

std::vector<float> AxclModel::GetOutputTensorData(
const std::string &name) const {
return impl_->GetOutputTensorData(name);
Expand Down
3 changes: 3 additions & 0 deletions sherpa-onnx/csrc/axcl/axcl-model.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class AxclModel {

bool SetInputTensorData(const std::string &name, const int32_t *p,
int32_t n) const;

bool SetInputTensorData(const std::string &name, const uint8_t *p,
int32_t n) const;

std::vector<float> GetOutputTensorData(const std::string &name) const;

Expand Down
Loading
Loading