Release v1.11.4 (#2169)

This commit is contained in:
Fangjun Kuang
2025-05-01 11:36:44 +08:00
committed by GitHub
parent fcb4c4eb2c
commit abc4daa49a
39 changed files with 105 additions and 63 deletions

View File

@@ -1,7 +1,7 @@
/**
* Use these variables when you tailor your ArkTS code. They must be of the const type.
*/
export const HAR_VERSION = '1.11.3';
export const HAR_VERSION = '1.11.4';
export const BUILD_MODE_NAME = 'debug';
export const DEBUG = true;
export const TARGET_NAME = 'default';

View File

@@ -6,6 +6,7 @@ export { CircularBuffer, SileroVadConfig, SpeechSegment, Vad, VadConfig, } from
export { Samples,
OfflineStream,
FeatureConfig,
HomophoneReplacerConfig,
OfflineDolphinModelConfig,
OfflineTransducerModelConfig,
OfflineParaformerModelConfig,

View File

@@ -23,7 +23,7 @@ or update your `oh-package.json5` to include the following:
```
"dependencies": {
"sherpa_onnx": "1.11.3",
"sherpa_onnx": "1.11.4",
},
```

View File

@@ -1,6 +1,6 @@
{
"name": "sherpa_onnx",
"version": "1.11.3",
"version": "1.11.4",
"description": "On-device 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",

View File

@@ -26,6 +26,12 @@ export class OfflineStream {
}
}
export class HomophoneReplacerConfig {
public dictDir: string = '';
public lexicon: string = '';
public ruleFsts: string = '';
}
export class FeatureConfig {
public sampleRate: number = 16000;
public featureDim: number = 80;
@@ -109,6 +115,7 @@ export class OfflineRecognizerConfig {
public ruleFsts: string = '';
public ruleFars: string = '';
public blankPenalty: number = 0;
public hr: HomophoneReplacerConfig = new HomophoneReplacerConfig();
}
export class OfflineRecognizerResult {

View File

@@ -10,7 +10,7 @@ import {
reset,
} from 'libsherpa_onnx.so';
import { FeatureConfig, Samples } from './NonStreamingAsr';
import { FeatureConfig, HomophoneReplacerConfig, Samples } from './NonStreamingAsr';
export class OnlineStream {
public handle: object;
@@ -79,6 +79,7 @@ export class OnlineRecognizerConfig {
public ruleFsts: string = '';
public ruleFars: string = '';
public blankPenalty: number = 0;
public hr: HomophoneReplacerConfig = new HomophoneReplacerConfig();
}
interface OnlineRecognizerResultJson {
@@ -137,4 +138,4 @@ export class OnlineRecognizer {
return r;
}
}
}

View File

@@ -6,7 +6,7 @@
"author": "",
"license": "",
"dependencies": {
"sherpa_onnx": "1.11.3"
"sherpa_onnx": "1.11.4"
}
}

View File

@@ -6,7 +6,7 @@
"author": "",
"license": "",
"dependencies": {
"sherpa_onnx": "1.11.3",
"sherpa_onnx": "1.11.4",
}
}

View File

@@ -6,7 +6,7 @@
"author": "",
"license": "",
"dependencies": {
"sherpa_onnx": "1.11.3",
"sherpa_onnx": "1.11.4",
}
}

View File

@@ -6,7 +6,7 @@
"author": "",
"license": "",
"dependencies": {
"sherpa_onnx": "1.11.3",
"sherpa_onnx": "1.11.4",
}
}

View File

@@ -1,6 +1,6 @@
# Introduction
Please download ./sherpa_onnx-v1.11.3.har
Please download ./sherpa_onnx-v1.11.4.har
from <https://huggingface.co/csukuangfj/sherpa-onnx-harmony-os/tree/main/har>
Hint: For users who have no access to huggingface, please use

View File

@@ -7,7 +7,7 @@
"license": "",
"dependencies": {
// please see https://ohpm.openharmony.cn/#/cn/detail/sherpa_onnx
"sherpa_onnx": "1.11.3",
"sherpa_onnx": "1.11.4",
}
}