yzx 3 дней назад
Родитель
Сommit
5ce2a5848b
3 измененных файлов с 47 добавлено и 2 удалено
  1. 1 1
      ruoyi-admin/src/main/resources/application-dev.yml
  2. 13 1
      sql/easycallcenter365.sql
  3. 33 0
      sql/v20260522.sql

+ 1 - 1
ruoyi-admin/src/main/resources/application-dev.yml

@@ -7,7 +7,7 @@ spring:
     druid:
       # 主库数据源
       master:
-        url: jdbc:mysql://129.28.164.235:3306/easycallcenter365?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+        url: jdbc:mysql://127.0.0.1:3306/easycallcenter365?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
         username: root
         password: easycallcenter365
       slave:

+ 13 - 1
sql/easycallcenter365.sql

@@ -909,6 +909,19 @@ INSERT INTO `fs_variables` VALUES ('33', '5', 'Parse-Json', '解析asr响应文
 INSERT INTO `fs_variables` VALUES ('34', '5', 'server_url', '服务器地址');
 INSERT INTO `fs_variables` VALUES ('35', '5', 'log_asr_response', '日志记录asr响应原始文本');
 INSERT INTO `fs_variables` VALUES ('36', '3', 'odbc-dsn', '数据库连接字符串');
+INSERT INTO `fs_variables` VALUES ('37', '5', 'api-key', '阿里 ASR API Key');
+INSERT INTO `fs_variables` VALUES ('38', '5', 'workspace-id', '工作空间 ID');
+INSERT INTO `fs_variables` VALUES ('39', '5', 'websocket-url', 'WebSocket 地址');
+INSERT INTO `fs_variables` VALUES ('40', '5', 'model', '识别模型');
+INSERT INTO `fs_variables` VALUES ('41', '5', 'sample-rate', '音频采样率');
+INSERT INTO `fs_variables` VALUES ('42', '5', 'send-chunk-ms', '音频发送分片时长(毫秒)');
+INSERT INTO `fs_variables` VALUES ('43', '5', 'semantic-punctuation-enabled', '启用语义标点');
+INSERT INTO `fs_variables` VALUES ('44', '5', 'max-sentence-silence', '句尾静音时长(毫秒)');
+INSERT INTO `fs_variables` VALUES ('45', '5', 'multi-threshold-mode-enabled', '启用多阈值模式');
+INSERT INTO `fs_variables` VALUES ('46', '5', 'punctuation-prediction-enabled', '启用标点预测');
+INSERT INTO `fs_variables` VALUES ('47', '5', 'inverse-text-normalization-enabled', '启用逆文本归一化');
+INSERT INTO `fs_variables` VALUES ('48', '5', 'heartbeat', '启用心跳');
+INSERT INTO `fs_variables` VALUES ('49', '5', 'verify-peer', '校验证书');
 
 -- ----------------------------
 -- Table structure for gen_table
@@ -5406,4 +5419,3 @@ ALTER TABLE `cc_llm_agent_account` ADD COLUMN concurrent_num INT(3) DEFAULT 1 CO
 
 
 
-

+ 33 - 0
sql/v20260522.sql

@@ -20,6 +20,39 @@ VALUES (4022, '阿里ASR配置(新)', 'aliAsrBridgeConf', 3018, 7, '/cc/fsconf/a
 INSERT INTO `sys_role_menu` (`role_id`, `menu_id`)
 VALUES (2, 4022);
 
+DELETE FROM `fs_variables`
+WHERE `var_field_name` IN (
+    'api-key',
+    'workspace-id',
+    'websocket-url',
+    'model',
+    'sample-rate',
+    'send-chunk-ms',
+    'semantic-punctuation-enabled',
+    'max-sentence-silence',
+    'multi-threshold-mode-enabled',
+    'punctuation-prediction-enabled',
+    'inverse-text-normalization-enabled',
+    'heartbeat',
+    'verify-peer'
+)
+AND `cat` = 5;
+
+INSERT INTO `fs_variables` (`id`, `cat`, `var_field_name`, `var_field_alias`) VALUES
+(37, 5, 'api-key', '阿里 ASR API Key'),
+(38, 5, 'workspace-id', '工作空间 ID'),
+(39, 5, 'websocket-url', 'WebSocket 地址'),
+(40, 5, 'model', '识别模型'),
+(41, 5, 'sample-rate', '音频采样率'),
+(42, 5, 'send-chunk-ms', '音频发送分片时长(毫秒)'),
+(43, 5, 'semantic-punctuation-enabled', '启用语义标点'),
+(44, 5, 'max-sentence-silence', '句尾静音时长(毫秒)'),
+(45, 5, 'multi-threshold-mode-enabled', '启用多阈值模式'),
+(46, 5, 'punctuation-prediction-enabled', '启用标点预测'),
+(47, 5, 'inverse-text-normalization-enabled', '启用逆文本归一化'),
+(48, 5, 'heartbeat', '启用心跳'),
+(49, 5, 'verify-peer', '校验证书');
+
 DELETE FROM `cc_asr_languages`
 WHERE `asr_provider` = 'ali'
   AND `models` = 'fun-asr-flash-8k-realtime'