From 66ca7b2ca9c503507c050a55d5a51caa24944661 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sun, 1 Dec 2024 21:40:45 +0800 Subject: [PATCH] Minor fixes --- harmony-os/SherpaOnnxHar/sherpa_onnx/Index.ets | 9 +++++++++ scripts/check_style_cpplint.sh | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/harmony-os/SherpaOnnxHar/sherpa_onnx/Index.ets b/harmony-os/SherpaOnnxHar/sherpa_onnx/Index.ets index 185aa51fd..959b6ba02 100644 --- a/harmony-os/SherpaOnnxHar/sherpa_onnx/Index.ets +++ b/harmony-os/SherpaOnnxHar/sherpa_onnx/Index.ets @@ -38,3 +38,12 @@ export { OnlineRecognizerResult, OnlineRecognizer, } from './src/main/ets/components/StreamingAsr'; + +export { + OfflineTtsVitsModelConfig, + OfflineTtsModelConfig, + OfflineTtsConfig, + OfflineTts, + TtsOutput, + TtsInput, +} from './src/main/ets/components/NonStreamingTts'; diff --git a/scripts/check_style_cpplint.sh b/scripts/check_style_cpplint.sh index c7a698301..dcadcd991 100755 --- a/scripts/check_style_cpplint.sh +++ b/scripts/check_style_cpplint.sh @@ -103,7 +103,7 @@ function do_check() { 2) echo "Check all files" files=$(find $sherpa_onnx_dir/cxx-api-examples $sherpa_onnx_dir/c-api-examples $sherpa_onnx_dir/sherpa-onnx/csrc $sherpa_onnx_dir/sherpa-onnx/python $sherpa_onnx_dir/scripts/node-addon-api/src $sherpa_onnx_dir/sherpa-onnx/jni $sherpa_onnx_dir/sherpa-onnx/c-api -name "*.h" -o -name "*.cc") - files=$(find $sherpa_onnx_dir/harmony-os/SherpaOnnxHar/sherpa_onnx/src/main/cpp/ -name "*.cc") + files2=$(find $sherpa_onnx_dir/harmony-os/SherpaOnnxHar/sherpa_onnx/src/main/cpp/ -name "*.cc") ;; *) echo "Check last commit" @@ -111,7 +111,7 @@ function do_check() { ;; esac - for f in $files; do + for f in $files $files2; do need_check=$(is_source_code_file $f) if $need_check; then [[ -f $f ]] && check_style $f