Support onnxruntime 1.18.0 (#906)

This commit is contained in:
Fangjun Kuang
2024-07-10 17:05:26 +08:00
committed by GitHub
parent 9e446b8501
commit dd0ff2ca06
107 changed files with 644 additions and 601 deletions

View File

@@ -10,9 +10,9 @@ const config = {
},
'modelConfig': {
'paraformer': {
'model': './sherpa-onnx-paraformer-zh-2023-03-28/model.int8.onnx',
'model': './sherpa-onnx-paraformer-zh-2023-09-14/model.int8.onnx',
},
'tokens': './sherpa-onnx-paraformer-zh-2023-03-28/tokens.txt',
'tokens': './sherpa-onnx-paraformer-zh-2023-09-14/tokens.txt',
'numThreads': 2,
'provider': 'cpu',
'debug': 1,
@@ -20,7 +20,7 @@ const config = {
};
const waveFilename =
'./sherpa-onnx-paraformer-zh-2023-03-28/test_wavs/5-henan.wav';
'./sherpa-onnx-paraformer-zh-2023-09-14/test_wavs/5-henan.wav';
const recognizer = new sherpa_onnx.OfflineRecognizer(config);
console.log('Started')