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
2025-04-09 09:02:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2025-04-09 09:02:41 +0800
Commit
1c3a38300206456dfe2a938d2b059a60dd5ea9a9
1c3a3830
1 parent
dcaf9dd2
Fix a typo in the JNI for Android. (#2108)
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
11 行增加
和
2 行删除
.github/workflows/android-static.yaml
.github/workflows/android.yaml
sherpa-onnx/jni/offline-recognizer.cc
.github/workflows/android-static.yaml
查看文件 @
1c3a383
...
...
@@ -172,6 +172,9 @@ jobs:
file_glob
:
true
overwrite
:
true
file
:
sherpa-onnx-*-android*.tar.bz2
# repo_name: k2-fsa/sherpa-onnx
# repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
# tag: v1.11.3
build-android-aar-static
:
needs
:
[
build-android-static-libs
]
...
...
@@ -298,3 +301,6 @@ jobs:
file_glob
:
true
overwrite
:
true
file
:
./*.aar
# repo_name: k2-fsa/sherpa-onnx
# repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
# tag: v1.11.3
...
...
.github/workflows/android.yaml
查看文件 @
1c3a383
...
...
@@ -166,6 +166,9 @@ jobs:
file_glob
:
true
overwrite
:
true
file
:
sherpa-onnx-*-android.tar.bz2
# repo_name: k2-fsa/sherpa-onnx
# repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
# tag: v1.11.3
build-android-aar
:
needs
:
[
build-android-libs
]
...
...
@@ -294,7 +297,7 @@ jobs:
file
:
./*.aar
# repo_name: k2-fsa/sherpa-onnx
# repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
# tag: v1.11.
2
# tag: v1.11.
3
-
name
:
Release android aar
if
:
github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
...
...
sherpa-onnx/jni/offline-recognizer.cc
查看文件 @
1c3a383
...
...
@@ -271,7 +271,7 @@ static OfflineRecognizerConfig GetOfflineConfig(JNIEnv *env, jobject config) {
jobject
dolphin_config
=
env
->
GetObjectField
(
model_config
,
fid
);
jclass
dolphin_config_cls
=
env
->
GetObjectClass
(
dolphin_config
);
fid
=
env
->
GetFieldID
(
nemo
_config_cls
,
"model"
,
"Ljava/lang/String;"
);
fid
=
env
->
GetFieldID
(
dolphin
_config_cls
,
"model"
,
"Ljava/lang/String;"
);
s
=
(
jstring
)
env
->
GetObjectField
(
dolphin_config
,
fid
);
p
=
env
->
GetStringUTFChars
(
s
,
nullptr
);
...
...
请
注册
或
登录
后发表评论