| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- // anycall
- import { request } from '@/api'
- import type { TVoice } from '@/types/voice'
- import type { TVoiceTypeNumber } from '@/constants/voiceTypes'
- // 克隆声音
- export function cloneVoice(params: {name: string, gender?: number, audioUrl: string, feature?: string}){
- // return request(`/anycall/cloneVoice`, params)
- return request(`/share/adm_voice/clone`, params)
- }
- // 编辑声音
- export function updateVoice(params: {
- "id": string,
- "name": string,
- "photoUrl": string,
- "feature": string
- }){
- return request(`/share/adm_voice/update`, params)
- }
- // 音色列表
- export function voiceList(params: {
- page: number,
- size: number,
- gender?: number|null,
- type?: TVoiceTypeNumber, // 1、系统音色;2、管理员克隆;3、用户克隆
- }){
- return request<{
- total: number,
- content: TVoice[]
- }>(`/share/adm_voice/search`, params)
- }
- // 音色激活
- export function activeVoice(params: {
- id: string,
- }){
- return request(`/share/adm_voice/active`, params)
- }
- // 删除音色
- export function deleteVoice(params: {
- id: string,
- }){
- return request(`/share/adm_voice/delete`, params)
- }
|