文档中的例子https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/speechrecognizer-guide-V5运行起来以后,依次点击CreateEngineCallback,setListener,startListening,说一句话以后点击finish。通过打断点可以看到,onStart和onComplete都回调了,但onResult始终没有回调。
文档中的例子https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/speechrecognizer-guide-V5运行起来以后,依次点击CreateEngineCallback,setListener,startListening,说一句话以后点击finish。通过打断点可以看到,onStart和onComplete都回调了,但onResult始终没有回调。
1 回答1.1k 阅读✓ 已解决
1 回答1.4k 阅读
1 回答1.2k 阅读
1 回答1.1k 阅读
1 回答1.1k 阅读
1 回答988 阅读
1 回答961 阅读
extraParam要用speechRecognizer.StartParams下的,参考demo: