private val DEMO_STT_MODEL = SttModel.PARAKEET
val config = SpeechConfig(
modelDir = modelDir,
useNnapi = false,
sttModel = DEMO_STT_MODEL,
precision = ModelPrecision.INT8,
emitPartialTranscriptions = true,
partialTranscriptionInterval = 0.5f,
language = "cn",
languageHints = listOf("en", "cn")
)
val p = pipelineFactory(config)
'''Why is it that even though I set the language to Chinese, the speech model still recognizes English text?'''
private val DEMO_STT_MODEL = SttModel.PARAKEET
'''Why is it that even though I set the language to Chinese, the speech model still recognizes English text?'''