Add links to pre-built APKs and pre-trained models to README. (#840)

This commit is contained in:
Fangjun Kuang
2024-05-07 12:28:42 +08:00
committed by GitHub
parent 37a4135dd7
commit d2e86b0415
20 changed files with 1395 additions and 614 deletions

View File

@@ -8,7 +8,6 @@ import android.media.MediaRecorder
import android.os.Bundle
import android.text.method.ScrollingMovementMethod
import android.util.Log
import android.view.View
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
@@ -200,12 +199,12 @@ class MainActivity : AppCompatActivity() {
// Please change getOfflineModelConfig() to add new models
// See https://k2-fsa.github.io/sherpa/onnx/pretrained_models/index.html
// for a list of available models
val secondType = 0
Log.i(TAG, "Select model type ${secondType} for the second pass")
val asrModelType = 0
Log.i(TAG, "Select model type ${asrModelType} for ASR")
val config = OfflineRecognizerConfig(
featConfig = getFeatureConfig(sampleRate = sampleRateInHz, featureDim = 80),
modelConfig = getOfflineModelConfig(type = secondType)!!,
modelConfig = getOfflineModelConfig(type = asrModelType)!!,
)
offlineRecognizer = OfflineRecognizer(

View File

@@ -1,5 +1,5 @@
<resources>
<string name="app_name">VAD+ASR</string>
<string name="app_name">VAD+ASR: Next-gen Kaldi</string>
<string name="hint">Click the Start button to play speech-to-text with Next-gen Kaldi.
\n
\n\n\n