Fangjun Kuang
Committed by GitHub

Update doc links for HarmonyOS (#1601)

@@ -2,8 +2,13 @@ @@ -2,8 +2,13 @@
2 2
3 - [./SherpaOnnxHar](./SherpaOnnxHar) It is for building `sherpa_onnx.har`. 3 - [./SherpaOnnxHar](./SherpaOnnxHar) It is for building `sherpa_onnx.har`.
4 If you don't need to change the C++ or Typescript code of sherpa-onnx, then 4 If you don't need to change the C++ or Typescript code of sherpa-onnx, then
5 - you can download pre-built `sherpa_onnx.har` from us. Please refer to  
6 - our [doc](https://k2-fsa.github.io/sherpa/onnx) for how to download it. 5 + you can download pre-built `sherpa_onnx.har` from us. Just run `ohpm install sherpa_onnx`.
  6 + Please refer to our [doc](https://k2-fsa.github.io/sherpa/onnx/harmony-os/how-to-build-har.html)
  7 + if you want to build `sherpa-onnx` from source.
7 8
8 - [./SherpaOnnxVadAsr](./SherpaOnnxVadAsr) It shows how to use 9 - [./SherpaOnnxVadAsr](./SherpaOnnxVadAsr) It shows how to use
9 VAD + Non-streaming ASR for speech recognition. 10 VAD + Non-streaming ASR for speech recognition.
  11 + Please see the doc at <https://k2-fsa.github.io/sherpa/onnx/harmony-os/vad-asr.html>
  12 +
  13 +- [./SherpaOnnxTts](./SherpaOnnxTts) It shows how to run on-device text-to-speech.
  14 + Please see the doc at <https://k2-fsa.github.io/sherpa/onnx/harmony-os/tts.html>
1 # Introduction 1 # Introduction
2 2
3 -How to build `sherpa_onnx.har` from the command line: 3 +How to build `sherpa_onnx.har` from the command line
  4 +----------------------------------------------------
4 5
5 -```bash  
6 -git clone https://github.com/k2-fsa/sherpa-onnx  
7 -cd sherpa-onnx  
8 -./build-ohos-arm64-v8a.sh  
9 -./build-ohos-x86-64.sh  
10 -  
11 -cd harmony-os/SherpaOnnxHar  
12 -  
13 -hvigorw clean --no-daemon  
14 -  
15 -hvigorw --mode module -p product=default -p module=sherpa_onnx@default assembleHar --analyze=normal --parallel --incremental --no-daemon  
16 -  
17 -ls -lh ./sherpa_onnx/build/default/outputs/default/sherpa_onnx.har  
18 -```  
19 -  
20 -Pre-built `har` packages can be found at  
21 -<https://huggingface.co/csukuangfj/sherpa-onnx-harmony-os/tree/main/har>  
22 -  
23 -You can also download it using  
24 -```  
25 -wget https://ohpm.openharmony.cn/ohpm/sherpa_onnx/-/sherpa_onnx-1.10.33.har  
26 -  
27 -# Please replace the version 1.10.33 if needed.  
28 -```  
29 -  
30 -You can also use  
31 -```  
32 -ohpm install sherpa_onnx  
33 -```  
34 -to install it.  
35 -  
36 -See also  
37 -<https://ohpm.openharmony.cn/#/cn/detail/sherpa_onnx> 6 +Please see https://k2-fsa.github.io/sherpa/onnx/harmony-os/how-to-build-har.html
  1 +# Introduction
  2 +
  3 +Please see
  4 +https://k2-fsa.github.io/sherpa/onnx/harmony-os/tts.html
  5 +for how to run code in this folder.
  1 +# Introduction
  2 +
  3 +Please see
  4 +https://k2-fsa.github.io/sherpa/onnx/harmony-os/vad-asr.html
  5 +for how to run code in this folder.