diff --git a/.github/workflows/apk-audio-tagging.yaml b/.github/workflows/apk-audio-tagging.yaml index c11180c4..bd8cd7e0 100644 --- a/.github/workflows/apk-audio-tagging.yaml +++ b/.github/workflows/apk-audio-tagging.yaml @@ -160,6 +160,9 @@ jobs: export GIT_LFS_SKIP_SMUDGE=1 export GIT_CLONE_PROTECTION_ACTIVE=false + SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) + echo "SHERPA_ONNX_VERSION $SHERPA_ONNX_VERSION" + git clone https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-apk huggingface cd huggingface git fetch @@ -167,7 +170,10 @@ jobs: git merge -m "merge remote" --ff origin main mkdir -p audio-tagging - cp -v ../apks/*.apk ./audio-tagging/ + d=audio-tagging/$SHERPA_ONNX_VERSION + mkdir -p $d + cp -v ../apks/*.apk ./$d + git status git lfs track "*.apk" git add . diff --git a/.github/workflows/pkg-config.yaml b/.github/workflows/pkg-config.yaml index 48ef160b..68459af0 100644 --- a/.github/workflows/pkg-config.yaml +++ b/.github/workflows/pkg-config.yaml @@ -110,13 +110,6 @@ jobs: gcc -o offline-tts-c-api $(pkg-config --cflags sherpa-onnx) ./offline-tts-c-api.c $(pkg-config --libs sherpa-onnx) ./offline-tts-c-api --help - - name: Test offline TTS C API - shell: bash - run: | - export PATH=$PWD/c-api-examples:$PATH - export EXE=offline-tts-c-api - .github/scripts/test-offline-tts.sh - - name: Test online transducer (C API) shell: bash run: | diff --git a/sherpa-onnx/csrc/offline-speech-denoiser-gtcrn-impl.h b/sherpa-onnx/csrc/offline-speech-denoiser-gtcrn-impl.h index 56ddbecc..090186be 100644 --- a/sherpa-onnx/csrc/offline-speech-denoiser-gtcrn-impl.h +++ b/sherpa-onnx/csrc/offline-speech-denoiser-gtcrn-impl.h @@ -6,6 +6,7 @@ #define SHERPA_ONNX_CSRC_OFFLINE_SPEECH_DENOISER_GTCRN_IMPL_H_ #include +#include #include #include #include diff --git a/sherpa-onnx/csrc/offline-speech-denoiser-gtcrn-model.cc b/sherpa-onnx/csrc/offline-speech-denoiser-gtcrn-model.cc index 1de44f22..3a4741c1 100644 --- a/sherpa-onnx/csrc/offline-speech-denoiser-gtcrn-model.cc +++ b/sherpa-onnx/csrc/offline-speech-denoiser-gtcrn-model.cc @@ -54,7 +54,7 @@ class OfflineSpeechDenoiserGtcrnModel::Impl { return meta_; } - States GetInitStates() const { + States GetInitStates() { Ort::Value conv_cache = Ort::Value::CreateTensor( allocator_, meta_.conv_cache_shape.data(), meta_.conv_cache_shape.size());