- 后台接口
- 前台接口
- 【新】后台接口
- AI设置
- AI知识库
- 模型计费(旧)
- 模型管理
- 对话管理
- 创作管理
- 充值套餐
- 注册奖励
- 用户管理
- 用户分组
- 财务中心
- 其它接口
- 系统设置
- AI音乐
- AI搜索
- AIPPT
- 会员套餐
- 思维导图
- AI视频
- 分享设置
- 空间设置
- 任务分享记录
- AI绘画
- 广场分类
- 【新】前台接口
语音配置保存
开发中
POST
/adminapi/setting.voice/save
请求参数
Header 参数
token
string
可选
示例值:
{{admin-token}}
Body 参数application/json
voice_input
object
语音输出配置
is_open
integer
是否开启
channel
string
语音渠道
channel_config
object
渠道配置
voice_output
object
语音输入配置
is_open
integer
发音配置
channel
string
当前渠道
channel_config
object
渠道配置
示例
{
"voice_input": {
"is_open": 0,
"channel": "kdxf",
"channel_config": {
"kdxf": {
"name": "科大讯飞",
"pronounce_list": {
"xiaoyan": "讯飞小燕",
"aisjiuxu": "讯飞许久",
"aisxping": "讯飞小萍",
"aisjinger": "讯飞小婧",
"aisbabyxu": "讯飞许小宝"
},
"pronounce": "xiaoyan",
"speed": 50
},
"openai": {
"name": "openAi-TTS",
"model_list": {
"whisper-1": "whisper-1"
},
"model": "whisper-1",
"agency_api": ""
}
}
},
"voice_output": {
"is_open": 0,
"channel": "kdxf",
"channel_config": {
"kdxf": {
"name": "科大讯飞",
"pronounce_list": {
"xiaoyan": "讯飞小燕",
"aisjiuxu": "讯飞许久",
"aisxping": "讯飞小萍",
"aisjinger": "讯飞小婧",
"aisbabyxu": "讯飞许小宝"
},
"pronounce": "xiaoyan",
"speed": 50
},
"openai": {
"name": "openAi-TTS",
"pronounce_list": {
"alloy": "alloy",
"echo": "echo",
"fable": "fable",
"onyx": "onyx",
"nova": "nova",
"shimmer": "shimmer"
},
"pronounce": "alloy",
"speed": 1,
"model_list": {
"tts-1": "tts-1",
"tts-1-hd": "tts-1-hd"
},
"model": "tts-1",
"agency_api": ""
}
}
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/adminapi/setting.voice/save' \
--header 'token: {{admin-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"voice_input": {
"is_open": 0,
"channel": "kdxf",
"channel_config": {
"kdxf": {
"name": "科大讯飞",
"pronounce_list": {
"xiaoyan": "讯飞小燕",
"aisjiuxu": "讯飞许久",
"aisxping": "讯飞小萍",
"aisjinger": "讯飞小婧",
"aisbabyxu": "讯飞许小宝"
},
"pronounce": "xiaoyan",
"speed": 50
},
"openai": {
"name": "openAi-TTS",
"model_list": {
"whisper-1": "whisper-1"
},
"model": "whisper-1",
"agency_api": ""
}
}
},
"voice_output": {
"is_open": 0,
"channel": "kdxf",
"channel_config": {
"kdxf": {
"name": "科大讯飞",
"pronounce_list": {
"xiaoyan": "讯飞小燕",
"aisjiuxu": "讯飞许久",
"aisxping": "讯飞小萍",
"aisjinger": "讯飞小婧",
"aisbabyxu": "讯飞许小宝"
},
"pronounce": "xiaoyan",
"speed": 50
},
"openai": {
"name": "openAi-TTS",
"pronounce_list": {
"alloy": "alloy",
"echo": "echo",
"fable": "fable",
"onyx": "onyx",
"nova": "nova",
"shimmer": "shimmer"
},
"pronounce": "alloy",
"speed": 1,
"model_list": {
"tts-1": "tts-1",
"tts-1-hd": "tts-1-hd"
},
"model": "tts-1",
"agency_api": ""
}
}
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
array[string]
必需
示例
{
"code": 1,
"show": 1,
"msg": "设置成功",
"data": []
}
修改于 2024-03-27 02:30:32