This repository was archived by the owner on Mar 23, 2026. It is now read-only.
feat: 支持 TTS 播报#595
Merged
Merged
Conversation
Closed
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
IsHPDuwu
approved these changes
May 24, 2025
This comment was marked as outdated.
This comment was marked as outdated.
pizeroLOL
reviewed
May 24, 2025
pizeroLOL
suggested changes
Jun 1, 2025
This comment was marked as resolved.
This comment was marked as resolved.
pizeroLOL
approved these changes
Jun 1, 2025
pizeroLOL
left a comment
Member
There was a problem hiding this comment.
Type hint 考虑补一下,其他问题不大。LGTM
|
🧪 PyLint 检查结果 🐍 Ruff 警告```txt $(cat ruff_output.txt | head -c 5000 || echo '无警告 🎉') ```🚨 PyLint 致命错误```txt $(cat pylint_output.txt | grep -i 'fatal' || echo '无致命错误 🎉') ``` |
pizeroLOL
pushed a commit
to pizeroLOL/Class-Widgets
that referenced
this pull request
Aug 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
compressed_final.mp4
文档说明 By Copilot
1. tip_toast.py
TTSAudioThread(QThread):tts_is_playing标志防止多线程重复播报,保证音频整洁。主类tip_toast:
2. play_audio.py —— 音频播放底层逻辑
3. config/default_config.json
4. view/menu/sound.ui & tts_settings.ui
sound.ui:
tts_settings.ui:
TTS 配置调整
"enable": 1开启TTS,0为关闭"engine": "edge"指定TTS引擎(如 edge/pyttsx3,需环境支持)"speed": 50语速百分比"voice_id": ""可选,指定具体音色"attend_class": "活动开始, {lesson_name}"播报模板,变量支持见下表支持的模板变量