This commit is contained in:
2026-03-05 22:58:31 +08:00
parent e046335900
commit 9b132082d2
7 changed files with 1514 additions and 738 deletions

View File

@@ -250,7 +250,7 @@ export function useTTS(options = {}) {
// 处理 Base64 音频
if (res.data?.audioBase64) {
const { blob, objectUrl } = decodeBase64Audio(res.data.audioBase64, res.data.format)
const audioData = { blob, objectUrl, format: res.data.format }
const audioData = { blob, objectUrl, format: res.data.format, audioBase64: res.data.audioBase64 }
cacheAudio(cacheKey, audioData)
resetPreviewState()
if (opts.autoPlay !== false) playCachedAudio(audioData)