Fix publishing har packages for HarmonyOS (#1576)
This commit is contained in:
@@ -16,3 +16,22 @@ hvigorw --mode module -p product=default -p module=sherpa_onnx@default assembleH
|
||||
|
||||
ls -lh ./sherpa_onnx/build/default/outputs/default/sherpa_onnx.har
|
||||
```
|
||||
|
||||
Pre-built `har` packages can be found at
|
||||
<https://huggingface.co/csukuangfj/sherpa-onnx-harmony-os/tree/main/har>
|
||||
|
||||
You can also download it using
|
||||
```
|
||||
wget https://ohpm.openharmony.cn/ohpm/sherpa_onnx/-/sherpa_onnx-1.10.32.har
|
||||
|
||||
# Please replace the version 1.10.32 if needed.
|
||||
```
|
||||
|
||||
You can also use
|
||||
```
|
||||
ohpm install sherpa_onnx
|
||||
```
|
||||
to install it.
|
||||
|
||||
See also
|
||||
<https://ohpm.openharmony.cn/#/cn/detail/sherpa_onnx>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/**
|
||||
* Use these variables when you tailor your ArkTS code. They must be of the const type.
|
||||
*/
|
||||
export const HAR_VERSION = '1.0.0';
|
||||
export const BUILD_MODE_NAME = 'debug';
|
||||
export const DEBUG = true;
|
||||
export const HAR_VERSION = '1.10.32';
|
||||
export const BUILD_MODE_NAME = 'release';
|
||||
export const DEBUG = false;
|
||||
export const TARGET_NAME = 'default';
|
||||
|
||||
/**
|
||||
|
||||
@@ -10,3 +10,33 @@ It also supports embedded systems, Android, iOS, HarmonyOS,
|
||||
Raspberry Pi, RISC-V, x86_64 servers, websocket server/client,
|
||||
C/C++, Python, Kotlin, C#, Go, NodeJS, Java, Swift, Dart, JavaScript,
|
||||
Flutter, Object Pascal, Lazarus, Rust, etc.
|
||||
|
||||
|
||||
# Installation
|
||||
|
||||
To use `sherpa-onnx` in your project, please either use
|
||||
|
||||
```
|
||||
ohpm install sherpa_onnx
|
||||
```
|
||||
or update your `oh-package.json5` to include the following:
|
||||
|
||||
```
|
||||
"dependencies": {
|
||||
"sherpa_onnx": "1.10.32",
|
||||
},
|
||||
```
|
||||
|
||||
Note that we recommend always using the latest version.
|
||||
|
||||
# Examples
|
||||
|
||||
| Demo | URL | Description|
|
||||
|------|-----|------------|
|
||||
|SherpaOnnxVadAsr|[Address](https://github.com/k2-fsa/sherpa-onnx/tree/master/harmony-os/SherpaOnnxVadAsr)|It shows how to use VAD with a non-streaming ASR model for speech recognition|
|
||||
|
||||
# Documentation
|
||||
|
||||
If you have any issues, please either look at our doc at
|
||||
<https://k2-fsa.github.io/sherpa/onnx/> or create an issue at
|
||||
<https://github.com/k2-fsa/sherpa-onnx/issues>
|
||||
|
||||
@@ -1,16 +1,19 @@
|
||||
{
|
||||
"name": "sherpa_onnx",
|
||||
"version": "1.0.0",
|
||||
"version": "1.10.32",
|
||||
"description": "Speech-to-text, text-to-speech, and speaker diarization using Next-gen Kaldi without internet connection",
|
||||
"main": "Index.ets",
|
||||
"author": "The next-gen Kaldi team",
|
||||
"license": "Apache-2.0",
|
||||
"homepage": "https://github.com/k2-fsa/sherpa-onnx",
|
||||
"repository": "https://github.com/k2-fsa/sherpa-onnx/tree/master/harmonyos-SherpaOnnxHar",
|
||||
"repository": "https://github.com/k2-fsa/sherpa-onnx/tree/master/harmony-os/SherpaOnnxHar",
|
||||
"dependencies": {
|
||||
"libsherpa_onnx.so": "file:./src/main/cpp/types/libsherpa_onnx"
|
||||
},
|
||||
"keywords": [
|
||||
"语音识别",
|
||||
"语音合成",
|
||||
"新一代Kaldi",
|
||||
"tts",
|
||||
"asr",
|
||||
"locally",
|
||||
|
||||
Reference in New Issue
Block a user