From 5cc60de5c9525981a283c09d6b35248925aa3ab2 Mon Sep 17 00:00:00 2001 From: sawich Date: Mon, 16 Dec 2024 16:37:59 +0200 Subject: [PATCH] Rename maxNumStences to maxNumSentences (#1625) --- nodejs-addon-examples/test_tts_non_streaming_vits_coqui_de.js | 2 +- nodejs-addon-examples/test_tts_non_streaming_vits_piper_en.js | 2 +- .../test_tts_non_streaming_vits_zh_aishell3.js | 2 +- nodejs-addon-examples/test_tts_non_streaming_vits_zh_ll.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nodejs-addon-examples/test_tts_non_streaming_vits_coqui_de.js b/nodejs-addon-examples/test_tts_non_streaming_vits_coqui_de.js index 73ba4b61c..89a913fd3 100644 --- a/nodejs-addon-examples/test_tts_non_streaming_vits_coqui_de.js +++ b/nodejs-addon-examples/test_tts_non_streaming_vits_coqui_de.js @@ -14,7 +14,7 @@ function createOfflineTts() { numThreads: 1, provider: 'cpu', }, - maxNumStences: 1, + maxNumSentences: 1, }; return new sherpa_onnx.OfflineTts(config); } diff --git a/nodejs-addon-examples/test_tts_non_streaming_vits_piper_en.js b/nodejs-addon-examples/test_tts_non_streaming_vits_piper_en.js index 910f12650..6d18fb076 100644 --- a/nodejs-addon-examples/test_tts_non_streaming_vits_piper_en.js +++ b/nodejs-addon-examples/test_tts_non_streaming_vits_piper_en.js @@ -15,7 +15,7 @@ function createOfflineTts() { numThreads: 1, provider: 'cpu', }, - maxNumStences: 1, + maxNumSentences: 1, }; return new sherpa_onnx.OfflineTts(config); } diff --git a/nodejs-addon-examples/test_tts_non_streaming_vits_zh_aishell3.js b/nodejs-addon-examples/test_tts_non_streaming_vits_zh_aishell3.js index 505247cb3..8409bca50 100644 --- a/nodejs-addon-examples/test_tts_non_streaming_vits_zh_aishell3.js +++ b/nodejs-addon-examples/test_tts_non_streaming_vits_zh_aishell3.js @@ -15,7 +15,7 @@ function createOfflineTts() { numThreads: 1, provider: 'cpu', }, - maxNumStences: 1, + maxNumSentences: 1, ruleFsts: './vits-icefall-zh-aishell3/date.fst,./vits-icefall-zh-aishell3/phone.fst,./vits-icefall-zh-aishell3/number.fst,./vits-icefall-zh-aishell3/new_heteronym.fst', ruleFars: './vits-icefall-zh-aishell3/rule.far', diff --git a/nodejs-addon-examples/test_tts_non_streaming_vits_zh_ll.js b/nodejs-addon-examples/test_tts_non_streaming_vits_zh_ll.js index 5e258e2ad..b739c391e 100644 --- a/nodejs-addon-examples/test_tts_non_streaming_vits_zh_ll.js +++ b/nodejs-addon-examples/test_tts_non_streaming_vits_zh_ll.js @@ -16,7 +16,7 @@ function createOfflineTts() { numThreads: 1, provider: 'cpu', }, - maxNumStences: 1, + maxNumSentences: 1, ruleFsts: './sherpa-onnx-vits-zh-ll/date.fst,./sherpa-onnx-vits-zh-ll/phone.fst,./sherpa-onnx-vits-zh-ll/number.fst', };