Przeglądaj źródła

feat: 添加AI相关功能开关及UI调整

闪电 10 miesięcy temu
rodzic
commit
e111b54028

+ 5 - 0
.env.development

@@ -31,3 +31,8 @@ VITE_APP_SIP_URL = 'ws://192.168.1.19:5066'
31 31
 VITE_APP_SIP_IP = '192.168.1.19'
32 32
 VITE_APP_SIP_PASSWORD = '1234'
33 33
 VITE_APP_SIP_CONTACT_URL = "@192.168.1.19;transport=ws"
34
+
35
+# AI相关功能开启或关闭
36
+VITE_APP_AI_ASR = true
37
+VITE_APP_AI_SEARCH = true
38
+VITE_APP_AI_API = ''

+ 8 - 4
src/assets/style.css

@@ -628,10 +628,6 @@ video {
628 628
   left: 0px;
629 629
 }
630 630
 
631
-.left-64 {
632
-  left: 16rem;
633
-}
634
-
635 631
 .right-0 {
636 632
   right: 0px;
637 633
 }
@@ -640,10 +636,18 @@ video {
640 636
   right: 1.5rem;
641 637
 }
642 638
 
639
+.right-64 {
640
+  right: 16rem;
641
+}
642
+
643 643
 .top-0 {
644 644
   top: 0px;
645 645
 }
646 646
 
647
+.right-14 {
648
+  right: 3.5rem;
649
+}
650
+
647 651
 .z-10 {
648 652
   z-index: 10;
649 653
 }

+ 4 - 1
src/components/main/Navbar/index.vue

@@ -12,7 +12,8 @@
12 12
         <!-- 签入界面 -->
13 13
         <telephone-login></telephone-login>
14 14
 
15
-        <div class="aiBtn" @click="dialogVisible = true">
15
+        <!-- AI按钮 -->
16
+        <div class="aiBtn" v-if="showAiBtn" @click="dialogVisible = true">
16 17
           <el-image :src="aiIcon" :fit="fit" ></el-image>
17 18
         </div>
18 19
 
@@ -137,6 +138,8 @@
137 138
 
138 139
   // ai 部分代码开始
139 140
   const dialogVisible = ref(false)
141
+  const showAiBtn = ref(import.meta.env.VITE_APP_AI_SEARCH === 'true')
142
+  console.log(showAiBtn.value, 'showAiBtn');
140 143
   // ai 代码结束
141 144
 
142 145
   const appStore = useAppStore()

+ 1 - 1
src/components/main/drawer-phone/index.vue

@@ -1,7 +1,7 @@
1 1
 <!-- 代码已包含 CSS:使用 TailwindCSS , 安装 TailwindCSS 后方可看到布局样式效果 -->
2 2
 <template>
3 3
     <!-- 悬浮通话控制区 -->
4
-    <div class="fixed bottom-6 left-64 z-50" v-if="callPhoneFlag">
4
+    <div class="fixed bottom-6 right-14 z-50" v-if="callPhoneFlag">
5 5
         <!-- 悬浮通话状态卡片 -->
6 6
         <div class="bg-white rounded-lg shadow-lg p-3 flex items-center cursor-pointer hover:shadow-xl transition-shadow"
7 7
             @click="toggleCallPanel" v-if="!showCallPanel">

+ 172 - 264
src/views/main/phone/index.vue

@@ -114,7 +114,7 @@
114 114
                     </el-tab-pane>
115 115
 
116 116
                     <!-- 坐席助手 -->
117
-                    <el-tab-pane>
117
+                    <el-tab-pane v-if="showAsr">
118 118
                         <template #label>
119 119
                             <div class="flex items-center">
120 120
                                 <el-icon class="mr-2">
@@ -128,11 +128,11 @@
128 128
                             <div class="bg-white rounded-lg p-4 shadow-sm">
129 129
                                 <div class="flex justify-between items-center mb-4">
130 130
                                     <h3 class="text-lg font-medium">语音识别</h3>
131
-                                    <div class="flex items-center space-x-2">
131
+                                    <!-- <div class="flex items-center space-x-2">
132 132
                                         <el-tag :type="voiceStatus === 'active' ? 'success' : 'info'" size="small">
133 133
                                             {{ voiceStatus === 'active' ? '识别中' : '未开始' }}
134 134
                                         </el-tag>
135
-                                    </div>
135
+                                    </div> -->
136 136
                                 </div>
137 137
                                 <div class="relative mb-4">
138 138
                                     <div class="absolute left-0 top-0 w-full h-16 bg-gradient-to-b from
@@ -344,7 +344,7 @@ from-white to-transparent pointer-events-none z-10"></div>
344 344
                     <div class="flex justify-between items-center mb-6">
345 345
       <h2 class="text-xl font-medium">工单信息</h2>
346 346
       
347
-      <el-button :loading-icon="Eleme" class="flex items-center gap-1" type="primary" link @click="aiSubmit"
347
+      <el-button :loading-icon="Eleme" v-if="showAI && showAsr" class="flex items-center gap-1" type="primary" link @click="aiSubmit"
348 348
                     :loading="aiLoading">智能填单</el-button>
349 349
     </div>
350 350
                     <el-form :model="form" :rules="rules" ref="formRef" label-width="100px">
@@ -442,6 +442,8 @@ import knowledgeList from "@/views/main/knowledgeBase/knowledgeList/cpns/konwleg
442 442
 import { max,flatten } from 'lodash';
443 443
 import { getOfffixNuber, getCallSate } from '@/utils/index';
444 444
 
445
+
446
+
445 447
 const router = useRouter()
446 448
 let { proxy } = getCurrentInstance()
447 449
 const showCallPanel = ref(false);
@@ -449,6 +451,9 @@ const searchQuery = ref('');
449 451
 const aiLoading = ref(false);
450 452
 const isCanAutoScroll = ref(1); 
451 453
 console.log('proxy', proxy.$route);
454
+
455
+const showAsr = ref(import.meta.env.VITE_APP_AI_ASR === 'true');
456
+const showAI = ref(import.meta.env.VITE_APP_AI_SEARCH === 'true');
452 457
 // console.log(proxy.$route.query.callNumber)
453 458
 const telNumber = ref(proxy.$route.query.phone || proxy.$route.query.callNumber || proxy.$route.params.callNumber);
454 459
 console.log(telNumber.value)
@@ -804,267 +809,169 @@ const tabChange = (name) => {
804 809
 // 语音识别状态
805 810
 const voiceStatus = ref('active');
806 811
 // 识别记录
807
-const transcripts111 = ref([
808
-    {
809
-        role: 'customer',
810
-        timestamp: '14:30:24',
811
-        content: '您好,我想咨询一下这个智能客服系统的具体使用方法',
812
-        emotion: 'positive'
813
-    },
814
-    {
815
-        role: 'agent',
816
-        timestamp: '14:30:35',
817
-        content: '您好,很高兴为您介绍。我们的智能客服系统主要包含自动应答、多渠道接入、数据分析等核心功能,可以帮助企业提升客服效率',
818
-        emotion: 'positive'
819
-    },
820
-    {
821
-        role: 'customer',
822
-        timestamp: '14:30:48',
823
-        content: '听起来不错,那具体怎么配置自动应答功能呢?',
824
-        emotion: 'neutral'
825
-    },
826
-    {
827
-        role: 'agent',
828
-        timestamp: '14:31:02',
829
-        content: '好的,我来为您详细介绍。首先,您需要登录管理后台,点击右上角的"智能配置"按钮,在弹出的面板中选择"自动应答管理"',
830
-        emotion: 'positive'
831
-    },
832
-    {
833
-        role: 'customer',
834
-        timestamp: '14:31:15',
835
-        content: '找到了,这个界面设计得很直观',
836
-        emotion: 'positive'
837
-    },
838
-    {
839
-        role: 'agent',
840
-        timestamp: '14:31:28',
841
-        content: '是的,接下来您可以在知识库中添加常见问题和答案,系统会自动学习和匹配相似问题',
842
-        emotion: 'positive'
843
-    },
844
-    {
845
-        role: 'customer',
846
-        timestamp: '14:31:45',
847
-        content: '那如果遇到系统无法识别的问题怎么办?',
848
-        emotion: 'neutral'
849
-    },
850
-    {
851
-        role: 'agent',
852
-        timestamp: '14:32:00',
853
-        content: '这种情况系统会自动转人工客服处理,确保客户问题都能得到及时解决。同时系统会记录这些问题,用于后续知识库的优化',
854
-        emotion: 'positive'
855
-    },
856
-    {
857
-        role: 'customer',
858
-        timestamp: '14:32:18',
859
-        content: '明白了,那数据分析功能都包含哪些报表呢?',
860
-        emotion: 'positive'
861
-    },
862
-    {
863
-        role: 'agent',
864
-        timestamp: '14:32:35',
865
-        content: '我们提供了多维度的数据分析报表,包括客服效率分析、问题分类统计、客户满意度趋势、热点问题分析等',
866
-        emotion: 'positive'
867
-    },
868
-    {
869
-        role: 'customer',
870
-        timestamp: '14:32:52',
871
-        content: '这些报表数据可以导出吗?',
872
-        emotion: 'neutral'
873
-    },
874
-    {
875
-        role: 'agent',
876
-        timestamp: '14:33:08',
877
-        content: '可以的,系统支持Excel、PDF等多种格式的报表导出。您可以在报表页面右上角找到导出按钮',
878
-        emotion: 'positive'
879
-    },
880
-    {
881
-        role: 'customer',
882
-        timestamp: '14:33:25',
883
-        content: '太好了,这些功能正是我们需要的',
884
-        emotion: 'positive'
885
-    },
886
-    {
887
-        role: 'agent',
888
-        timestamp: '14:33:40',
889
-        content: '很高兴能帮到您。如果后续使用中有任何问题,随时都可以联系我们的技术支持团队',
890
-        emotion: 'positive'
891
-    },
892
-    {
893
-        role: 'customer',
894
-        timestamp: '14:33:55',
895
-        content: '好的,谢谢你细心的讲解',
896
-        emotion: 'positive'
897
-    },
898
-    {
899
-        role: 'agent',
900
-        timestamp: '14:34:10',
901
-        content: '不客气,为您提供优质的服务是我们的责任。祝您使用愉快!',
902
-        emotion: 'positive'
903
-    }
904
-]);
905 812
 
906
-const transcripts = ref([
907
-    {
908
-        direction: 1,
909
-        timestamp: '14:30:24',
910
-        page_content: '你好,中国热线请假。',
911
-    }, {
912
-        direction: 2,
913
-        timestamp: '14:30:24',
914
-        page_content: '喂,你好,嗯,听这样哦,我是林州这个横岛岳湖人呃',
915
-    }, {
916
-        direction: 1,
917
-        timestamp: '14:30:24',
918
-        page_content: '什么问题啊?你确实是无法统一工作呃,按照说实体上头到现在都没有工作了',
919
-    }, {
920
-        direction: 2,
921
-        timestamp: '14:30:24',
922
-        page_content: '我来问违约金怎么事儿?嗯,他说他他说是月底工资,',
923
-    }, {
924
-        direction: 1,
925
-        timestamp: '14:30:24',
926
-        page_content: '这个麻问您一下,我这边给您登记反映,您是林州市哪里的?',
927
-    }, {
928
-        direction: 2,
929
-        timestamp: '14:30:24',
930
-        page_content: '林州恒大悦府,恒大悦府',
931
-    }, {
932
-        direction: 1,
933
-        timestamp: '14:30:24',
934
-        page_content: '嗯,乐府乐是那个舒心一个舒心,一个对那个乐是吧?',
935
-    }, {
936
-        direction: 2,
937
-        timestamp: '14:30:24',
938
-        page_content: '嗯,对嗯',
939
-    }, {
940
-        direction: 1,
941
-        timestamp: '14:30:24',
942
-        page_content: '恒大乐府分几七部分啊,',
943
-    }, {
944
-        direction: 2,
945
-        timestamp: '14:30:24',
946
-        page_content: '分级,你们一期二期分不分呃,一期同大月付一期几号楼几单元,十七号楼一单元幺九零一十七号楼一单元幺九零一',
947
-    }, {
948
-        direction: 1,
949
-        timestamp: '14:30:24',
950
-        page_content: '嗯,您怎么称呼先生啊?',
951
-    }, {
952
-        direction: 2,
953
-        timestamp: '14:30:24',
954
-        page_content: '免贵?我就我我姓李李松,你让李先生吧',
955
-    }, {
956
-        direction: 1,
957
-        timestamp: '14:30:24',
958
-        page_content: '给您单心恒大悦府在林州市的哪个路段。您说一下',
959
-    }, {
960
-        direction: 2,
961
-        timestamp: '14:30:24',
962
-        page_content: '在这个这个是河南一个湖,也就他就一个湖,河南一个湖,我也不知道这个是什么路段',
963
-    }, {
964
-        direction: 1,
965
-        timestamp: '14:30:24',
966
-        page_content: '那您没有路段的话,这个位置不明确,我这边就暂不给您反映啊',
967
-    }, {
968
-        direction: 2,
969
-        timestamp: '14:30:24',
970
-        page_content: '嗯,那个是可能是那个呃华城相府,',
971
-    }, {
972
-        direction: 1,
973
-        timestamp: '14:30:24',
974
-        page_content: '哪个路段?',
975
-    }, {
976
-        direction: 2,
977
-        timestamp: '14:30:24',
978
-        page_content: '不是那个那个是呃鲁八大道,',
979
-    }, {
980
-        direction: 1,
981
-        timestamp: '14:30:24',
982
-        page_content: '鲁八大道中段什么大道,',
983
-    }, {
984
-        direction: 2,
985
-        timestamp: '14:30:24',
986
-        page_content: '鲁班哪两个字卢班鲁班嗯,',
987
-    }, {
988
-        direction: 1,
989
-        timestamp: '14:30:24',
990
-        page_content: '鲁班大道与什么路交叉口?',
991
-    }, {
992
-        direction: 2,
993
-        timestamp: '14:30:24',
994
-        page_content: '嗯,鲁班大道一零米,',
995
-    }, 
996
-    {
997
-        direction: 1,
998
-        timestamp: '14:30:24',
999
-        page_content: '你们是是什么路来的,',
1000
-    }, {
1001
-        direction: 2,
1002
-        timestamp: '14:30:24',
1003
-        page_content: '你就说恒大悦府就行了。',
1004
-    }, {
1005
-        direction: 1,
1006
-        timestamp: '14:30:24',
1007
-        page_content: '那个那个零六就你一个恒大悦府必须哪个路段,',
1008
-    }, {
1009
-        direction: 2,
1010
-        timestamp: '14:30:24',
1011
-        page_content: '我们这边也得清楚,鲁班大鲁班大道开元街道,',
1012
-    }, {
1013
-        direction: 1,
1014
-        timestamp: '14:30:24',
1015
-        page_content: '恒大悦府是吗?',
1016
-    }, {
1017
-        direction: 2,
1018
-        timestamp: '14:30:24',
1019
-        page_content: '哦,对,康阳街道的嗯,',
1020
-    }, {
1021
-        direction: 1,
1022
-        timestamp: '14:30:24',
1023
-        page_content: '行好的,这边给您登记一下啊。',
1024
-    }, {
1025
-        direction: 2,
1026
-        timestamp: '14:30:24',
1027
-        page_content: '嗯,好了,不歉。',
1028
-    }, {
1029
-        direction: 1,
1030
-        timestamp: '14:30:24',
1031
-        page_content: '喂,哎,可以了。',
1032
-    }, {
1033
-        direction: 2,
1034
-        timestamp: '14:30:24',
1035
-        page_content: '呃',
1036
-    }, {
1037
-        direction: 1,
1038
-        timestamp: '14:30:24',
1039
-        page_content: '刚才我给你他们啊嗯已经给您登记了,稍后反应呃。',
1040
-    }, {
1041
-        direction: 2,
1042
-        timestamp: '14:30:24',
1043
-        page_content: '登登记了,你登记的,我是你知道我反映的什么吗?',
1044
-    }, {
1045
-        direction: 1,
1046
-        timestamp: '14:30:24',
1047
-        page_content: '你不是家中暖气没热吗?不热吗?',
1048
-    }, {
1049
-        direction: 2,
1050
-        timestamp: '14:30:24',
1051
-        page_content: '这不是不热,是没充暖,我给物业,我给物业联系了,物业,说是呃,他们这里公司就两个人,一共十七栋楼,他问他说这个还能等待几天一栋一栋的开呢,我们的我我们的供暖费都交了。',
1052
-    }, {
1053
-        direction: 2,
1054
-        page_content: '看他几天,你看他几天',
1055
-    }, {
1056
-        direction: 1,
1057
-        page_content: '你给我说个定是不是嗯就是人员少,担心无法正常供暖,是不是啊?',
1058
-    }, {
1059
-        direction: 2,
1060
-        page_content: '他说还得几天,你现在十五号都是显示统一功能。你到现在就你你说排了几天,还得几天的。',
1061
-    }, {
1062
-        direction: 1,
1063
-        page_content: '嗯,好的,这边已经有您同小弟业主反映过了,跟您跟他同甘办理啊。',
1064
-    }, {
1065
-        direction: 2,
1066
-        page_content: '嗯嗯,行好的。',
1067
-    }
813
+const transcripts: any = ref([
814
+    // {
815
+    //     direction: 1,
816
+    //     timestamp: '14:30:24',
817
+    //     page_content: '你好,中国热线请假。',
818
+    // }, {
819
+    //     direction: 2,
820
+    //     timestamp: '14:30:24',
821
+    //     page_content: '喂,你好,嗯,听这样哦,我是林州这个横岛岳湖人呃',
822
+    // }, {
823
+    //     direction: 1,
824
+    //     timestamp: '14:30:24',
825
+    //     page_content: '什么问题啊?你确实是无法统一工作呃,按照说实体上头到现在都没有工作了',
826
+    // }, {
827
+    //     direction: 2,
828
+    //     timestamp: '14:30:24',
829
+    //     page_content: '我来问违约金怎么事儿?嗯,他说他他说是月底工资,',
830
+    // }, {
831
+    //     direction: 1,
832
+    //     timestamp: '14:30:24',
833
+    //     page_content: '这个麻问您一下,我这边给您登记反映,您是林州市哪里的?',
834
+    // }, {
835
+    //     direction: 2,
836
+    //     timestamp: '14:30:24',
837
+    //     page_content: '林州恒大悦府,恒大悦府',
838
+    // }, {
839
+    //     direction: 1,
840
+    //     timestamp: '14:30:24',
841
+    //     page_content: '嗯,乐府乐是那个舒心一个舒心,一个对那个乐是吧?',
842
+    // }, {
843
+    //     direction: 2,
844
+    //     timestamp: '14:30:24',
845
+    //     page_content: '嗯,对嗯',
846
+    // }, {
847
+    //     direction: 1,
848
+    //     timestamp: '14:30:24',
849
+    //     page_content: '恒大乐府分几七部分啊,',
850
+    // }, {
851
+    //     direction: 2,
852
+    //     timestamp: '14:30:24',
853
+    //     page_content: '分级,你们一期二期分不分呃,一期同大月付一期几号楼几单元,十七号楼一单元幺九零一十七号楼一单元幺九零一',
854
+    // }, {
855
+    //     direction: 1,
856
+    //     timestamp: '14:30:24',
857
+    //     page_content: '嗯,您怎么称呼先生啊?',
858
+    // }, {
859
+    //     direction: 2,
860
+    //     timestamp: '14:30:24',
861
+    //     page_content: '免贵?我就我我姓李李松,你让李先生吧',
862
+    // }, {
863
+    //     direction: 1,
864
+    //     timestamp: '14:30:24',
865
+    //     page_content: '给您单心恒大悦府在林州市的哪个路段。您说一下',
866
+    // }, {
867
+    //     direction: 2,
868
+    //     timestamp: '14:30:24',
869
+    //     page_content: '在这个这个是河南一个湖,也就他就一个湖,河南一个湖,我也不知道这个是什么路段',
870
+    // }, {
871
+    //     direction: 1,
872
+    //     timestamp: '14:30:24',
873
+    //     page_content: '那您没有路段的话,这个位置不明确,我这边就暂不给您反映啊',
874
+    // }, {
875
+    //     direction: 2,
876
+    //     timestamp: '14:30:24',
877
+    //     page_content: '嗯,那个是可能是那个呃华城相府,',
878
+    // }, {
879
+    //     direction: 1,
880
+    //     timestamp: '14:30:24',
881
+    //     page_content: '哪个路段?',
882
+    // }, {
883
+    //     direction: 2,
884
+    //     timestamp: '14:30:24',
885
+    //     page_content: '不是那个那个是呃鲁八大道,',
886
+    // }, {
887
+    //     direction: 1,
888
+    //     timestamp: '14:30:24',
889
+    //     page_content: '鲁八大道中段什么大道,',
890
+    // }, {
891
+    //     direction: 2,
892
+    //     timestamp: '14:30:24',
893
+    //     page_content: '鲁班哪两个字卢班鲁班嗯,',
894
+    // }, {
895
+    //     direction: 1,
896
+    //     timestamp: '14:30:24',
897
+    //     page_content: '鲁班大道与什么路交叉口?',
898
+    // }, {
899
+    //     direction: 2,
900
+    //     timestamp: '14:30:24',
901
+    //     page_content: '嗯,鲁班大道一零米,',
902
+    // }, 
903
+    // {
904
+    //     direction: 1,
905
+    //     timestamp: '14:30:24',
906
+    //     page_content: '你们是是什么路来的,',
907
+    // }, {
908
+    //     direction: 2,
909
+    //     timestamp: '14:30:24',
910
+    //     page_content: '你就说恒大悦府就行了。',
911
+    // }, {
912
+    //     direction: 1,
913
+    //     timestamp: '14:30:24',
914
+    //     page_content: '那个那个零六就你一个恒大悦府必须哪个路段,',
915
+    // }, {
916
+    //     direction: 2,
917
+    //     timestamp: '14:30:24',
918
+    //     page_content: '我们这边也得清楚,鲁班大鲁班大道开元街道,',
919
+    // }, {
920
+    //     direction: 1,
921
+    //     timestamp: '14:30:24',
922
+    //     page_content: '恒大悦府是吗?',
923
+    // }, {
924
+    //     direction: 2,
925
+    //     timestamp: '14:30:24',
926
+    //     page_content: '哦,对,康阳街道的嗯,',
927
+    // }, {
928
+    //     direction: 1,
929
+    //     timestamp: '14:30:24',
930
+    //     page_content: '行好的,这边给您登记一下啊。',
931
+    // }, {
932
+    //     direction: 2,
933
+    //     timestamp: '14:30:24',
934
+    //     page_content: '嗯,好了,不歉。',
935
+    // }, {
936
+    //     direction: 1,
937
+    //     timestamp: '14:30:24',
938
+    //     page_content: '喂,哎,可以了。',
939
+    // }, {
940
+    //     direction: 2,
941
+    //     timestamp: '14:30:24',
942
+    //     page_content: '呃',
943
+    // }, {
944
+    //     direction: 1,
945
+    //     timestamp: '14:30:24',
946
+    //     page_content: '刚才我给你他们啊嗯已经给您登记了,稍后反应呃。',
947
+    // }, {
948
+    //     direction: 2,
949
+    //     timestamp: '14:30:24',
950
+    //     page_content: '登登记了,你登记的,我是你知道我反映的什么吗?',
951
+    // }, {
952
+    //     direction: 1,
953
+    //     timestamp: '14:30:24',
954
+    //     page_content: '你不是家中暖气没热吗?不热吗?',
955
+    // }, {
956
+    //     direction: 2,
957
+    //     timestamp: '14:30:24',
958
+    //     page_content: '这不是不热,是没充暖,我给物业,我给物业联系了,物业,说是呃,他们这里公司就两个人,一共十七栋楼,他问他说这个还能等待几天一栋一栋的开呢,我们的我我们的供暖费都交了。',
959
+    // }, {
960
+    //     direction: 2,
961
+    //     page_content: '看他几天,你看他几天',
962
+    // }, {
963
+    //     direction: 1,
964
+    //     page_content: '你给我说个定是不是嗯就是人员少,担心无法正常供暖,是不是啊?',
965
+    // }, {
966
+    //     direction: 2,
967
+    //     page_content: '他说还得几天,你现在十五号都是显示统一功能。你到现在就你你说排了几天,还得几天的。',
968
+    // }, {
969
+    //     direction: 1,
970
+    //     page_content: '嗯,好的,这边已经有您同小弟业主反映过了,跟您跟他同甘办理啊。',
971
+    // }, {
972
+    //     direction: 2,
973
+    //     page_content: '嗯嗯,行好的。',
974
+    // }
1068 975
 ])
1069 976
 // 关键词提示
1070 977
 const keywords = ref([
@@ -1113,6 +1020,7 @@ watch(
1113 1020
 
1114 1021
 window.addEventListener('AsrMessageEvent', (msg: any) => {
1115 1022
     console.log(msg.detail, '接收asr消息');
1023
+    if (!showAsr) return;
1116 1024
     if (!msg?.detail || !msg.detail.Result) return;
1117 1025
     const msgInfo = {
1118 1026
         direction: msg.detail.Number.toString().length > 4 ? 2 : 1,