mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-24 08:03:53 +08:00
feat: mobile端同步更新上报模式、语言设置功能
This commit is contained in:
@@ -206,3 +206,19 @@ export function updateAgentTags(agentId: string, data) {
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
// 获取所有语言
|
||||
export function getAllLanguage(modelId, voiceName) {
|
||||
const queryParams = new URLSearchParams({
|
||||
voiceName: voiceName || '',
|
||||
}).toString()
|
||||
return http.Get(`/models/${modelId}/voices?${queryParams}`, {
|
||||
meta: {
|
||||
ignoreAuth: false,
|
||||
toast: false,
|
||||
},
|
||||
cacheFor: {
|
||||
expire: 0,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user