Release v1.11.4 (#2169)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user