|
@@ -1,16 +1,19 @@
|
|
|
import { Alova, url } from '../alova'
|
|
|
|
|
|
export const fetchTtsList = (num: string) => {
|
|
|
+ const form = new FormData();
|
|
|
+ form.append('num', num)
|
|
|
return Alova.Get(url.ttsList, {
|
|
|
- params: {
|
|
|
- num
|
|
|
- }
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/x-www-from-urlencoded; charset=UTF-8'
|
|
|
+ },
|
|
|
+ params: { num }
|
|
|
})
|
|
|
}
|
|
|
|
|
|
export interface SaveTOTTSParams {
|
|
|
document: string
|
|
|
- voiceType: number
|
|
|
+ voiceType: string
|
|
|
speed: number
|
|
|
volume: number
|
|
|
num: string
|
|
@@ -25,7 +28,7 @@ export const saveTOTTS = (params: SaveTOTTSParams) => {
|
|
|
speed: String(params.speed),
|
|
|
volume: String(params.volume),
|
|
|
//
|
|
|
- voiceType: '101040'
|
|
|
+ voiceType: String(params.type)
|
|
|
})
|
|
|
}
|
|
|
|