HarmonyOS 语音转文本相关问题?

按照文档描述进行转换引擎的初始化,通过模拟器运行后出现以下异常:

Error message:Cannot read property createEngine of undefined
SourceCode:
  speechRecognizer.createEngine(VoiceTransfer.initParamsInfo, (err: BusinessError, speechRecognitionEngine: speechRecognizer.SpeechRecognitionEngine) => {

请问是什么原因导致的呢?是因为模拟器不支持的原因吗?

阅读 541
1 个回答
logo
HarmonyOS
子站问答
访问
宣传栏