fix(asr): 修复语音识别最终结果显示问题
- 修复 ASR 最终结果日志显示为完整文本而非累积结果 - 传递实际识别文本而非累积部分文本给意图识别助手 - 确保意图识别使用正确的文本数据进行场景分析
这个提交包含在:
父节点
63430c9964
当前提交
cfb2e6cad9
@ -131,9 +131,9 @@ object AsrHelper : OfflineCmdListener {
|
|||||||
// 滚动更新当前识别中间结果
|
// 滚动更新当前识别中间结果
|
||||||
currentPartial += text
|
currentPartial += text
|
||||||
asr?.stopAsrWithMic()
|
asr?.stopAsrWithMic()
|
||||||
Log.d(TAG, "ASR final result: $currentPartial")
|
Log.d(TAG, "ASR final result: $text")
|
||||||
IntentRecognizeHelper.recognize(
|
IntentRecognizeHelper.recognize(
|
||||||
text = currentPartial,
|
text = text,
|
||||||
scence = scene,
|
scence = scene,
|
||||||
onSuccess = { action ->
|
onSuccess = { action ->
|
||||||
if (action.name == "goToDecisionCenter") {
|
if (action.name == "goToDecisionCenter") {
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户