This commit is contained in:
杨航
2025-11-10 16:56:23 +08:00
parent 021b12ac87
commit d35f5acd92
2 changed files with 57 additions and 6 deletions
+15
View File
@@ -169,6 +169,21 @@ export function downloadVoiceFile(url) {
});
});
}
// 获取音频 通用参数
export function downloadVoiceParams(url) {
const token = getToken();
const header = {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
};
if (token)
header['summary'] = token
let baseUrl = get_base_url(url);
return {
url: `${baseUrl}${url}`,
header,
timeout: 180000,
}
}
export function getAudioByText(data) {