优化
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user