fix: dict audio

This commit is contained in:
Gabe Yuan
2024-03-25 21:00:39 +08:00
parent a83039577c
commit 602b51b1f5
3 changed files with 21 additions and 17 deletions

View File

@@ -105,7 +105,9 @@ export const apiBaiduSuggest = async (text) => {
*/
export const apiBaiduTTS = (text, lan = "uk", spd = 3) => {
const url = `${URL_BAIDU_TTS}?${queryString.stringify({ lan, text, spd })}`;
return fetchPolyfill(url);
return fetchPolyfill(url, {
useCache: false, // 为避免缓存过快增长,禁用缓存语音数据
});
};
/**