Fangjun Kuang
Committed by GitHub

Fix building APK (#286)

1 cmake_minimum_required(VERSION 3.13 FATAL_ERROR) 1 cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
2 project(sherpa-onnx) 2 project(sherpa-onnx)
3 3
4 -set(SHERPA_ONNX_VERSION "1.7.10") 4 +set(SHERPA_ONNX_VERSION "1.7.11")
5 5
6 # Disable warning about 6 # Disable warning about
7 # 7 #
@@ -177,7 +177,7 @@ class MainActivity : AppCompatActivity() { @@ -177,7 +177,7 @@ class MainActivity : AppCompatActivity() {
177 // Please change getModelConfig() to add new models 177 // Please change getModelConfig() to add new models
178 // See https://k2-fsa.github.io/sherpa/onnx/pretrained_models/index.html 178 // See https://k2-fsa.github.io/sherpa/onnx/pretrained_models/index.html
179 // for a list of available models 179 // for a list of available models
180 - val type = 5 180 + val type = 0
181 println("Select model type ${type}") 181 println("Select model type ${type}")
182 val config = OnlineRecognizerConfig( 182 val config = OnlineRecognizerConfig(
183 featConfig = getFeatureConfig(sampleRate = sampleRateInHz, featureDim = 80), 183 featConfig = getFeatureConfig(sampleRate = sampleRateInHz, featureDim = 80),