Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Fangjun Kuang
2024-12-06 10:11:18 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-12-06 10:11:18 +0800
Commit
84821b1f9929d39118725199284f6b77c73c0984
84821b1f
1 parent
9352ccf7
Fix building node-addon package (#1598)
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
5 行增加
和
5 行删除
harmony-os/SherpaOnnxHar/sherpa_onnx/src/main/cpp/non-streaming-tts.cc
scripts/node-addon-api/CMakeLists.txt
scripts/node-addon-api/package.json
harmony-os/SherpaOnnxHar/sherpa_onnx/src/main/cpp/non-streaming-tts.cc
查看文件 @
84821b1
...
...
@@ -406,7 +406,9 @@ class TtsGenerateWorker : public Napi::AsyncWorker {
for
(
auto
d
:
_this
->
data_list_
)
{
if
(
d
->
cancelled
)
{
#if __OHOS__
OH_LOG_INFO
(
LOG_APP
,
"TtsGenerate is cancelled"
);
#endif
return
0
;
}
}
...
...
scripts/node-addon-api/CMakeLists.txt
查看文件 @
84821b1
...
...
@@ -11,9 +11,7 @@ cmake_policy(SET CMP0042 NEW)
project
(
sherpa-onnx
)
set
(
CMAKE_CXX_STANDARD 14
)
add_definitions
(
-DNAPI_VERSION=3
)
set
(
CMAKE_CXX_STANDARD 17
)
include_directories
(
${
CMAKE_JS_INC
}
)
...
...
scripts/node-addon-api/package.json
查看文件 @
84821b1
...
...
@@ -3,8 +3,8 @@
"version"
:
"1.0.0"
,
"description"
:
"Speech-to-text, text-to-speech, and speaker diarization using Next-gen Kaldi without internet connection"
,
"dependencies"
:
{
"cmake-js"
:
"^6.0.0"
,
"node-addon-api"
:
"^1.1.0"
,
"cmake-js"
:
"^7.0.0"
,
"node-addon-api"
:
"^8.3.0"
,
"perf_hooks"
:
"*"
},
"scripts"
:
{
...
...
请
注册
或
登录
后发表评论