This commit is contained in:
Fangjun Kuang
2023-02-22 21:14:57 +08:00
committed by GitHub
parent f9010adc3c
commit ef93dcd733
11 changed files with 589 additions and 0 deletions

17
.github/scripts/WaveReader.kt vendored Normal file
View File

@@ -0,0 +1,17 @@
package com.k2fsa.sherpa.onnx
import android.content.res.AssetManager
class WaveReader {
companion object {
// Read a mono wave file.
// No resampling is made.
external fun readWave(
assetManager: AssetManager, filename: String, expected_sample_rate: Float = 16000.0f
): FloatArray?
init {
System.loadLibrary("sherpa-onnx-jni")
}
}
}