Fix CI (#2016)
This commit is contained in:
8
.github/workflows/apk-audio-tagging.yaml
vendored
8
.github/workflows/apk-audio-tagging.yaml
vendored
@@ -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 .
|
||||
|
||||
7
.github/workflows/pkg-config.yaml
vendored
7
.github/workflows/pkg-config.yaml
vendored
@@ -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: |
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#define SHERPA_ONNX_CSRC_OFFLINE_SPEECH_DENOISER_GTCRN_IMPL_H_
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@@ -54,7 +54,7 @@ class OfflineSpeechDenoiserGtcrnModel::Impl {
|
||||
return meta_;
|
||||
}
|
||||
|
||||
States GetInitStates() const {
|
||||
States GetInitStates() {
|
||||
Ort::Value conv_cache = Ort::Value::CreateTensor<float>(
|
||||
allocator_, meta_.conv_cache_shape.data(),
|
||||
meta_.conv_cache_shape.size());
|
||||
|
||||
Reference in New Issue
Block a user