fix: separate voice credentials and refresh feature toggle
This commit is contained in:
@@ -83,8 +83,15 @@ const groupBlueprints: Record<string, SettingGroupBlueprint[]> = {
|
||||
},
|
||||
{
|
||||
title: "语音输入",
|
||||
description: "控制用户端麦克风入口和单次录音上限。",
|
||||
keys: ["voice_input_enabled", "voice_max_duration_seconds"],
|
||||
description: "控制用户端麦克风入口、录音上限和独立的阿里云语音凭证。",
|
||||
keys: [
|
||||
"voice_input_enabled",
|
||||
"voice_max_duration_seconds",
|
||||
"aliyun_nls_app_key",
|
||||
"aliyun_nls_access_key_id",
|
||||
"aliyun_nls_access_key_secret",
|
||||
"aliyun_nls_endpoint",
|
||||
],
|
||||
},
|
||||
],
|
||||
外部服务: [
|
||||
|
||||
@@ -231,6 +231,38 @@ export const systemSettingSections: SystemSettingSection[] = [
|
||||
max: 60,
|
||||
description: "达到设定时长后自动停止并转成文字,阿里云一句话识别上限为 60 秒。",
|
||||
},
|
||||
{
|
||||
key: "aliyun_nls_app_key",
|
||||
label: "阿里云语音 AppKey",
|
||||
type: "text",
|
||||
defaultValue: "",
|
||||
placeholder: "请输入智能语音交互项目 AppKey",
|
||||
description: "填写阿里云智能语音交互控制台中对应应用的 AppKey。",
|
||||
},
|
||||
{
|
||||
key: "aliyun_nls_access_key_id",
|
||||
label: "语音服务 AccessKey ID",
|
||||
type: "password",
|
||||
defaultValue: "",
|
||||
placeholder: "请单独填写语音服务 AccessKey ID",
|
||||
description: "语音服务独立配置;如与短信使用同一账号,也需要在这里手动填写。",
|
||||
},
|
||||
{
|
||||
key: "aliyun_nls_access_key_secret",
|
||||
label: "语音服务 AccessKey Secret",
|
||||
type: "password",
|
||||
defaultValue: "",
|
||||
placeholder: "请单独填写语音服务 AccessKey Secret",
|
||||
description: "加密保存且不会明文回显,不再从短信配置中读取。",
|
||||
},
|
||||
{
|
||||
key: "aliyun_nls_endpoint",
|
||||
label: "阿里云语音 Endpoint",
|
||||
type: "text",
|
||||
defaultValue: "https://nls-gateway-cn-shanghai.aliyuncs.com/stream/v1/asr",
|
||||
placeholder: "https://nls-gateway-cn-shanghai.aliyuncs.com/stream/v1/asr",
|
||||
description: "一句话识别服务地址,一般保持默认值即可。",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user