mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 23:23:55 +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,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ export interface Agent {
|
||||
summaryMemory: string | null
|
||||
lastConnectedAt: string | null
|
||||
deviceCount: number
|
||||
tags: { id: string, tagName: string }[]
|
||||
tags: Record<string, string>[]
|
||||
}
|
||||
|
||||
// 智能体创建数据类型
|
||||
@@ -43,6 +43,10 @@ export interface AgentDetail {
|
||||
createdAt: string
|
||||
updater: string
|
||||
updatedAt: string
|
||||
ttsLanguage: string
|
||||
ttsVolume: number
|
||||
ttsRate: number
|
||||
ttsPitch: number
|
||||
functions: AgentFunction[]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user