mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-11-10 16:02:25 +01:00
Models download in Settings instead of shipping in the APK. Credits for the engine and models are in About.
13 lines
394 B
Kotlin
13 lines
394 B
Kotlin
// From sherpa-onnx v1.13.8 (Apache-2.0, https://github.com/k2-fsa/sherpa-onnx), kotlin-api.
|
|
package com.k2fsa.sherpa.onnx
|
|
|
|
data class FeatureConfig(
|
|
var sampleRate: Int = 16000,
|
|
var featureDim: Int = 80,
|
|
var dither: Float = 0.0f
|
|
)
|
|
|
|
fun getFeatureConfig(sampleRate: Int, featureDim: Int): FeatureConfig {
|
|
return FeatureConfig(sampleRate = sampleRate, featureDim = featureDim)
|
|
}
|