Skip to content

Commit

Permalink
modified readme
Browse files Browse the repository at this point in the history
  • Loading branch information
litongjava committed Oct 21, 2023
1 parent e9b9688 commit 17205ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ https://github.com/litongjava/whisper.cpp.android.java.demo/releases/tag/v1.0.0

For **debugging** purposes, you can use the first or second file. However, if you intend to **release** or use it in **other Android projects**, it is recommended that you choose the third stripped file as it will be smaller in size and will not contain unnecessary debugging information.

So, for use in other Android projects, choose the `app\build\intermediates\stripped_native_libs\debug\out\lib\arm64-v8a\libwhisper_v8fp16_va.so` file. If you need to debug in other projects, then consider using the unstripped version.
So, for use in other Android projects, choose the `AndroidWhisperCppLibrary-stripped_native_libs.zip` file. If you need to debug in other projects, then consider using the unstripped version.


### 1.2.2.View Java methods in so files
Expand Down Expand Up @@ -767,12 +767,12 @@ public class WaveEncoder {
}
}
```
### 1.3.6.识别wav文件
### 1.3.6.transcript wav file
#### 1.3.6.1.WhisperService
```
加载模型
//load model
whisperContext = WhisperContext.createContextFromFile(modelPath);
识别文件
// transcript
transcription = whisperContext.transcribeData(audioData);
```

Expand Down
2 changes: 1 addition & 1 deletion readme_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ https://github.com/litongjava/whisper.cpp.android.java.demo/releases/tag/v1.0.0

对于 **调试** 目的,您可以使用第一个或第二个文件。但如果您打算 **发布** 或在 **其他 Android 项目中使用**,建议您选择第三个剥离后的文件,因为它的大小会更小,并且不包含不必要的调试信息。

所以,为了在其他 Android 项目中使用,请选择 `app\build\intermediates\stripped_native_libs\debug\out\lib\arm64-v8a\libwhisper_v8fp16_va.so` 文件。如果您需要在其他项目中进行调试,那么可以考虑使用未剥离的版本。
所以,为了在其他 Android 项目中使用,请选择 `AndroidWhisperCppLibrary-stripped_native_libs.zip` 文件。如果您需要在其他项目中进行调试,那么可以考虑使用未剥离的版本。


### 1.2.2.查看so文件中的Java方法
Expand Down

0 comments on commit 17205ca

Please sign in to comment.