Fix publishing apks to huggingface (#1121)
Save APKs for each release in a separate directory. Huggingface requires that each directory cannot contain more than 1000 files. Since we have so many tts models and for each model we need to build APKs of 4 different ABIs, it is a workaround for the huggingface's constraint by placing them into separate directories for different releases.
This commit is contained in:
@@ -15,7 +15,7 @@ func main() {
|
||||
config := sherpa.VadModelConfig{}
|
||||
|
||||
// Please download silero_vad.onnx from
|
||||
// https://github.com/snakers4/silero-vad/blob/master/files/silero_vad.onnx
|
||||
// https://github.com/snakers4/silero-vad/raw/master/src/silero_vad/data/silero_vad.onnx
|
||||
|
||||
config.SileroVad.Model = "./silero_vad.onnx"
|
||||
config.SileroVad.Threshold = 0.5
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
set -ex
|
||||
|
||||
if [ ! -f ./silero_vad.onnx ]; then
|
||||
curl -SL -O https://github.com/snakers4/silero-vad/raw/master/files/silero_vad.onnx
|
||||
curl -SL -O https://github.com/snakers4/silero-vad/raw/master/src/silero_vad/data/silero_vad.onnx
|
||||
fi
|
||||
|
||||
if [ ! -f ./sherpa-onnx-paraformer-trilingual-zh-cantonese-en/model.int8.onnx ]; then
|
||||
|
||||
@@ -15,7 +15,7 @@ func main() {
|
||||
config := sherpa.VadModelConfig{}
|
||||
|
||||
// Please download silero_vad.onnx from
|
||||
// https://github.com/snakers4/silero-vad/blob/master/files/silero_vad.onnx
|
||||
// https://github.com/snakers4/silero-vad/raw/master/src/silero_vad/data/silero_vad.onnx
|
||||
|
||||
config.SileroVad.Model = "./silero_vad.onnx"
|
||||
config.SileroVad.Threshold = 0.5
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
set -ex
|
||||
|
||||
if [ ! -f ./silero_vad.onnx ]; then
|
||||
curl -SL -O https://github.com/snakers4/silero-vad/raw/master/files/silero_vad.onnx
|
||||
curl -SL -O https://github.com/snakers4/silero-vad/raw/master/src/silero_vad/data/silero_vad.onnx
|
||||
fi
|
||||
|
||||
if [ ! -f ./sherpa-onnx-whisper-tiny.en/tiny.en-encoder.int8.onnx ]; then
|
||||
|
||||
@@ -89,7 +89,7 @@ func createVad() *sherpa.VoiceActivityDetector {
|
||||
config := sherpa.VadModelConfig{}
|
||||
|
||||
// Please download silero_vad.onnx from
|
||||
// https://github.com/snakers4/silero-vad/blob/master/files/silero_vad.onnx
|
||||
// https://github.com/snakers4/silero-vad/raw/master/src/silero_vad/data/silero_vad.onnx
|
||||
|
||||
config.SileroVad.Model = "./silero_vad.onnx"
|
||||
config.SileroVad.Threshold = 0.5
|
||||
|
||||
@@ -11,7 +11,7 @@ if [ ! -f ./sr-data/enroll/fangjun-sr-1.wav ]; then
|
||||
fi
|
||||
|
||||
if [ ! -f ./silero_vad.onnx ]; then
|
||||
curl -SL -O https://github.com/snakers4/silero-vad/raw/master/files/silero_vad.onnx
|
||||
curl -SL -O https://github.com/snakers4/silero-vad/raw/master/src/silero_vad/data/silero_vad.onnx
|
||||
fi
|
||||
|
||||
go mod tidy
|
||||
|
||||
@@ -15,7 +15,7 @@ func main() {
|
||||
config := sherpa.VadModelConfig{}
|
||||
|
||||
// Please download silero_vad.onnx from
|
||||
// https://github.com/snakers4/silero-vad/blob/master/files/silero_vad.onnx
|
||||
// https://github.com/snakers4/silero-vad/raw/master/src/silero_vad/data/silero_vad.onnx
|
||||
|
||||
config.SileroVad.Model = "./silero_vad.onnx"
|
||||
config.SileroVad.Threshold = 0.5
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
set -ex
|
||||
|
||||
if [ ! -f ./silero_vad.onnx ]; then
|
||||
curl -SL -O https://github.com/snakers4/silero-vad/raw/master/files/silero_vad.onnx
|
||||
curl -SL -O https://github.com/snakers4/silero-vad/raw/master/src/silero_vad/data/silero_vad.onnx
|
||||
fi
|
||||
|
||||
if [ ! -f ./sherpa-onnx-whisper-tiny/tiny-encoder.int8.onnx ]; then
|
||||
|
||||
@@ -13,7 +13,7 @@ func main() {
|
||||
config := sherpa.VadModelConfig{}
|
||||
|
||||
// Please download silero_vad.onnx from
|
||||
// https://github.com/snakers4/silero-vad/blob/master/files/silero_vad.onnx
|
||||
// https://github.com/snakers4/silero-vad/raw/master/src/silero_vad/data/silero_vad.onnx
|
||||
|
||||
config.SileroVad.Model = "./silero_vad.onnx"
|
||||
config.SileroVad.Threshold = 0.5
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
set -ex
|
||||
|
||||
if [ ! -f ./silero_vad.onnx ]; then
|
||||
curl -SL -O https://github.com/snakers4/silero-vad/raw/master/files/silero_vad.onnx
|
||||
curl -SL -O https://github.com/snakers4/silero-vad/raw/master/src/silero_vad/data/silero_vad.onnx
|
||||
fi
|
||||
|
||||
go mod tidy
|
||||
|
||||
Reference in New Issue
Block a user