diff --git a/.github/workflows/android-static.yaml b/.github/workflows/android-static.yaml index 957c51e8..35505c91 100644 --- a/.github/workflows/android-static.yaml +++ b/.github/workflows/android-static.yaml @@ -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 diff --git a/.github/workflows/android.yaml b/.github/workflows/android.yaml index 834fef02..490ca35d 100644 --- a/.github/workflows/android.yaml +++ b/.github/workflows/android.yaml @@ -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/') diff --git a/sherpa-onnx/jni/offline-recognizer.cc b/sherpa-onnx/jni/offline-recognizer.cc index 2eebe084..b63d6351 100644 --- a/sherpa-onnx/jni/offline-recognizer.cc +++ b/sherpa-onnx/jni/offline-recognizer.cc @@ -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);