From f6aeea69ea915a7cd0334e883d2fc496e215fbb6 Mon Sep 17 00:00:00 2001 From: xueqingkun Date: Mon, 22 Jan 2024 11:47:06 +0800 Subject: [PATCH] =?UTF-8?q?web=20:=20talkByVideo=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=9B=9E=E7=AD=94=E5=86=85=E5=AE=B9=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/supervision/service/impl/AskServiceImpl.java | 2 +- .../src/main/resources/application-dev.yml | 3 ++- .../src/main/resources/application-local.yml | 9 +++++---- .../src/main/resources/application-prod.yml | 3 ++- .../src/main/resources/application-test.yml | 3 ++- virtual-patient-web/src/main/resources/application.yml | 2 +- 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/virtual-patient-web/src/main/java/com/supervision/service/impl/AskServiceImpl.java b/virtual-patient-web/src/main/java/com/supervision/service/impl/AskServiceImpl.java index 54d1a76b..33af712b 100644 --- a/virtual-patient-web/src/main/java/com/supervision/service/impl/AskServiceImpl.java +++ b/virtual-patient-web/src/main/java/com/supervision/service/impl/AskServiceImpl.java @@ -209,7 +209,7 @@ public class AskServiceImpl implements AskService { // 如果rasa没有识别出来,则返回默认值 if (StrUtil.isBlank(rasaResult)) { talkResultResVO.setVideoBase64(getAnswerVideoBase64OrDefault(defaultNoMatchId)); - talkResultResVO.setVideoBase64(defaultNoMatchAnswerMessage); + talkResultResVO.setAnswerMessage(defaultNoMatchAnswerMessage); saveQaRecord(talkReqVO.getProcessId(), "default", null, talkReqVO.getText(), null, "您好,我没有听懂您说什么"); } diff --git a/virtual-patient-web/src/main/resources/application-dev.yml b/virtual-patient-web/src/main/resources/application-dev.yml index 38502edb..f1587089 100644 --- a/virtual-patient-web/src/main/resources/application-dev.yml +++ b/virtual-patient-web/src/main/resources/application-dev.yml @@ -81,4 +81,5 @@ human: resourceMaxNumber: 5 answer: # 对于没有匹配上的缺省回答ID,关联的是vp_file_resource的ID - defaultNoMatchId: 1739173836351885313 \ No newline at end of file + defaultNoMatchId: 1739173836351885313 + defaultNoMatchAnswerMessage: 你好,医生 \ No newline at end of file diff --git a/virtual-patient-web/src/main/resources/application-local.yml b/virtual-patient-web/src/main/resources/application-local.yml index 9b90c9c6..2e51914d 100644 --- a/virtual-patient-web/src/main/resources/application-local.yml +++ b/virtual-patient-web/src/main/resources/application-local.yml @@ -24,7 +24,7 @@ spring: type: com.alibaba.druid.pool.DruidDataSource druid: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://192.168.10.137:3306/virtual_patient?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=GMT%2B8 + url: jdbc:mysql://192.168.10.138:3306/virtual_patient?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=GMT%2B8 username: root password: '123456' initial-size: 5 # 初始化大小 @@ -52,7 +52,7 @@ spring: password: 123456 minio: - url: http://192.168.10.137:9002 + url: http://192.168.10.138:9002 accessKey: admin secretKey: 12345678 bucketName: virtual-patient-bucket-dev @@ -67,7 +67,7 @@ paddle-speech: tts: http://192.168.10.137:8090/paddlespeech/tts asr: http://192.168.10.137:8090/paddlespeech/asr rasa: - base-url: http://192.168.10.137:8890/virtual-patient-rasa/ + base-url: http://192.168.10.138:8890/virtual-patient-rasa/ talk: rasa/talkRasa saveRasaFile: rasaFile/saveRasaFile train: rasaCmd/trainExec @@ -81,4 +81,5 @@ human: answer: # 对于没有匹配上的缺省回答ID,关联的是vp_file_resource的ID - defaultNoMatchId: 1739173836351885313 \ No newline at end of file + defaultNoMatchId: 1739173836351885313 + defaultNoMatchAnswerMessage: 你好,医生 \ No newline at end of file diff --git a/virtual-patient-web/src/main/resources/application-prod.yml b/virtual-patient-web/src/main/resources/application-prod.yml index c3bd1526..398222d1 100644 --- a/virtual-patient-web/src/main/resources/application-prod.yml +++ b/virtual-patient-web/src/main/resources/application-prod.yml @@ -85,4 +85,5 @@ ws: nginx-port: 443 answer: # 对于没有匹配上的缺省回答ID,关联的是vp_file_resource的ID - defaultNoMatchId: 1739173836351885313 \ No newline at end of file + defaultNoMatchId: 1739173836351885313 + defaultNoMatchAnswerMessage: 你好,医生 \ No newline at end of file diff --git a/virtual-patient-web/src/main/resources/application-test.yml b/virtual-patient-web/src/main/resources/application-test.yml index 9b72e726..9b57263c 100644 --- a/virtual-patient-web/src/main/resources/application-test.yml +++ b/virtual-patient-web/src/main/resources/application-test.yml @@ -85,4 +85,5 @@ ws: nginx-port: 443 answer: # 对于没有匹配上的缺省回答ID,关联的是vp_file_resource的ID - defaultNoMatchId: 1739945100730986498 \ No newline at end of file + defaultNoMatchId: 1739945100730986498 + defaultNoMatchAnswerMessage: 你好,医生 \ No newline at end of file diff --git a/virtual-patient-web/src/main/resources/application.yml b/virtual-patient-web/src/main/resources/application.yml index 027b4e36..ef46c2ad 100644 --- a/virtual-patient-web/src/main/resources/application.yml +++ b/virtual-patient-web/src/main/resources/application.yml @@ -1,3 +1,3 @@ spring: profiles: - active: test \ No newline at end of file + active: local \ No newline at end of file