Committed by
GitHub
Fix a typo in the JNI for Android. (#2108)
正在显示
3 个修改的文件
包含
11 行增加
和
2 行删除
| @@ -172,6 +172,9 @@ jobs: | @@ -172,6 +172,9 @@ jobs: | ||
| 172 | file_glob: true | 172 | file_glob: true |
| 173 | overwrite: true | 173 | overwrite: true |
| 174 | file: sherpa-onnx-*-android*.tar.bz2 | 174 | file: sherpa-onnx-*-android*.tar.bz2 |
| 175 | + # repo_name: k2-fsa/sherpa-onnx | ||
| 176 | + # repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }} | ||
| 177 | + # tag: v1.11.3 | ||
| 175 | 178 | ||
| 176 | build-android-aar-static: | 179 | build-android-aar-static: |
| 177 | needs: [build-android-static-libs] | 180 | needs: [build-android-static-libs] |
| @@ -298,3 +301,6 @@ jobs: | @@ -298,3 +301,6 @@ jobs: | ||
| 298 | file_glob: true | 301 | file_glob: true |
| 299 | overwrite: true | 302 | overwrite: true |
| 300 | file: ./*.aar | 303 | file: ./*.aar |
| 304 | + # repo_name: k2-fsa/sherpa-onnx | ||
| 305 | + # repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }} | ||
| 306 | + # tag: v1.11.3 |
| @@ -166,6 +166,9 @@ jobs: | @@ -166,6 +166,9 @@ jobs: | ||
| 166 | file_glob: true | 166 | file_glob: true |
| 167 | overwrite: true | 167 | overwrite: true |
| 168 | file: sherpa-onnx-*-android.tar.bz2 | 168 | file: sherpa-onnx-*-android.tar.bz2 |
| 169 | + # repo_name: k2-fsa/sherpa-onnx | ||
| 170 | + # repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }} | ||
| 171 | + # tag: v1.11.3 | ||
| 169 | 172 | ||
| 170 | build-android-aar: | 173 | build-android-aar: |
| 171 | needs: [build-android-libs] | 174 | needs: [build-android-libs] |
| @@ -294,7 +297,7 @@ jobs: | @@ -294,7 +297,7 @@ jobs: | ||
| 294 | file: ./*.aar | 297 | file: ./*.aar |
| 295 | # repo_name: k2-fsa/sherpa-onnx | 298 | # repo_name: k2-fsa/sherpa-onnx |
| 296 | # repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }} | 299 | # repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }} |
| 297 | - # tag: v1.11.2 | 300 | + # tag: v1.11.3 |
| 298 | 301 | ||
| 299 | - name: Release android aar | 302 | - name: Release android aar |
| 300 | if: github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/') | 303 | if: github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/') |
| @@ -271,7 +271,7 @@ static OfflineRecognizerConfig GetOfflineConfig(JNIEnv *env, jobject config) { | @@ -271,7 +271,7 @@ static OfflineRecognizerConfig GetOfflineConfig(JNIEnv *env, jobject config) { | ||
| 271 | jobject dolphin_config = env->GetObjectField(model_config, fid); | 271 | jobject dolphin_config = env->GetObjectField(model_config, fid); |
| 272 | jclass dolphin_config_cls = env->GetObjectClass(dolphin_config); | 272 | jclass dolphin_config_cls = env->GetObjectClass(dolphin_config); |
| 273 | 273 | ||
| 274 | - fid = env->GetFieldID(nemo_config_cls, "model", "Ljava/lang/String;"); | 274 | + fid = env->GetFieldID(dolphin_config_cls, "model", "Ljava/lang/String;"); |
| 275 | 275 | ||
| 276 | s = (jstring)env->GetObjectField(dolphin_config, fid); | 276 | s = (jstring)env->GetObjectField(dolphin_config, fid); |
| 277 | p = env->GetStringUTFChars(s, nullptr); | 277 | p = env->GetStringUTFChars(s, nullptr); |
-
请 注册 或 登录 后发表评论