Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] tts语音播放增加缓存功能 #5631

Open
doveppp opened this issue Oct 11, 2024 · 5 comments
Open

[Feature Request] tts语音播放增加缓存功能 #5631

doveppp opened this issue Oct 11, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@doveppp
Copy link

doveppp commented Oct 11, 2024

🥰 需求描述

当前每次点击播放按钮都会发送一个请求获取音频,即使是完全相同的内容

可不可以增加一个缓存功能,相同的内容直接调取缓存?

🧐 解决方案

对朗读内容、语音速度、语音模型等进行哈希,储存在localStorage中

📝 补充信息

No response

@doveppp doveppp added the enhancement New feature or request label Oct 11, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Feature Request] tts voice playback adds caching function

🥰 Description of requirements

Currently every click on the play button sends a request to get the audio, even for the exact same content

Is it possible to add a cache function so that the same content can be directly accessed from the cache?

🧐 Solution

Hash the reading content, speech speed, speech model, etc. and store them in localStorage

📝 Supplementary information

No response

@Dakai
Copy link
Contributor

Dakai commented Oct 13, 2024

#5650

1 similar comment
@Dakai
Copy link
Contributor

Dakai commented Oct 13, 2024

#5650

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


#5650

1 similar comment
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


#5650

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants