Fix typos in JNI TTS (#824)

This commit is contained in:
Fangjun Kuang
2024-05-01 14:14:24 +08:00
committed by GitHub
parent cff207623e
commit fcd6024200
3 changed files with 5 additions and 5 deletions

View File

@@ -166,8 +166,8 @@ jobs:
git pull
git merge -m "merge remote" --ff origin main
mkdir -p tts
cp -v ../apks/*.apk ./tts-engine/
mkdir -p tts-engine-2
cp -v ../apks/*.apk ./tts-engine-2/
git status
git lfs track "*.apk"
git add .

View File

@@ -166,8 +166,8 @@ jobs:
git pull
git merge -m "merge remote" --ff origin main
mkdir -p tts
cp -v ../apks/*.apk ./tts/
mkdir -p tts-2
cp -v ../apks/*.apk ./tts-2/
git status
git lfs track "*.apk"
git add .

View File

@@ -99,7 +99,7 @@ static OfflineTtsConfig GetOfflineTtsConfig(JNIEnv *env, jobject config) {
} // namespace sherpa_onnx
SHERPA_ONNX_EXTERN_C
JNIEXPORT jlong JNICALL Java_com_k2fsa_sherpa_onnx_OfflineTts_newForAsset(
JNIEXPORT jlong JNICALL Java_com_k2fsa_sherpa_onnx_OfflineTts_newFromAsset(
JNIEnv *env, jobject /*obj*/, jobject asset_manager, jobject _config) {
#if __ANDROID_API__ >= 9
AAssetManager *mgr = AAssetManager_fromJava(env, asset_manager);