Skip to content

feat: 添加 TTS 文本转语音功能及播放控制 - #1

Open
hehetoshang wants to merge 15 commits into
mainfrom
trae/solo-agent-8rQ3wj
Open

hehetoshang wants to merge 15 commits into
mainfrom
trae/solo-agent-8rQ3wj

Conversation

@hehetoshang

Copy link
Copy Markdown
Owner

🎯 Changes

1. TTS 文本转语音功能

  • 在 EpubReader.vue 中添加 TTS 初始化、播放、暂停、恢复和停止等核心方法。
  • 实现从当前选中位置或整个章节播放文本的功能。
  • 添加悬浮播放控制器,显示当前播放文本并提供播放/暂停/停止按钮。
  • 在 Settings.vue 中新增听书设置部分,允许用户调整语速、音调和音量。
  • 添加 TTS 相关状态管理和设置应用逻辑。

2. 依赖与配置更新

  • 在 package.json 中新增 @lobehub/tts 依赖,版本为 5.1.2。
  • 在 Settings.vue 中添加 TTS 相关的默认设置值。

💡 Technical Highlights

  • 集成 @lobehub/tts: 利用成熟的 TTS 库实现文本转语音功能。
  • 播放控制: 提供全面的播放控制(播放、暂停、恢复、停止),提升用户体验。
  • 个性化设置: 允许用户自定义语速、音调和音量,满足不同阅读偏好。
  • 实时反馈: 悬浮播放控制器提供当前朗读内容的实时显示。

hehetoshang and others added 15 commits April 16, 2026 12:00
Co-authored-by: traeagent <[email protected]>
Co-authored-by: traeagent <[email protected]>
Co-authored-by: traeagent <[email protected]>
Co-authored-by: traeagent <[email protected]>
This reverts 1 commit(s) from 0728c66 to 0728c66.

Reverted commits:
0728c66 feat: 分析项目

Co-authored-by: traeagent <[email protected]>
Co-authored-by: traeagent <[email protected]>
This reverts 3 commit(s) from 0728c66 to f9a0cc1.

Reverted commits:
f9a0cc1 feat: 分析项目
6b1aee1 Revert commits 0728c66..0728c66
0728c66 feat: 分析项目

Co-authored-by: traeagent <[email protected]>
Co-authored-by: traeagent <[email protected]>
Co-authored-by: traeagent <[email protected]>
This reverts 1 commit(s) from 6ca9cf4 to 6ca9cf4.

Reverted commits:
6ca9cf4 feat: 分析项目

Co-authored-by: traeagent <[email protected]>
Co-authored-by: traeagent <[email protected]>
This reverts 3 commit(s) from 6ca9cf4 to d6f35a2.

Reverted commits:
d6f35a2 feat: 分析项目
6b3c802 Revert commits 6ca9cf4..6ca9cf4
6ca9cf4 feat: 分析项目

Co-authored-by: traeagent <[email protected]>
Co-authored-by: traeagent <[email protected]>
Co-authored-by: traeagent <[email protected]>
Co-authored-by: traeagent <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant