mirror of
https://github.com/Finb/Bark.git
synced 2026-04-27 06:55:50 +03:00
[GH-ISSUE #281] 语音通知功能 #245
Labels
No labels
bug
enhancement
in progress
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Bark#245
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wgetnz on GitHub (Feb 5, 2025).
Original GitHub issue: https://github.com/Finb/Bark/issues/281
建议为 Bark 添加文字转语音(TTS)通知功能
具体建议:
除了现有的 sound= 参数指定固定铃声外,建议增加 soundtext= 参数支持文字转语音
实现方案建议:
可以集成微软Azure TTS、Amazon Polly、Google TTS等成熟的TTS服务
支持中英文等多语言文本转语音
允许用户配置语音角色、语速、音调等参数
使用场景示例:
文字转语音通知
notify("任务提醒", "数据处理完成", soundtext="处理完成,共处理1000条数据")
支持更多参数配置
notify("错误警告", "系统异常", soundtext="检测到系统异常,请及时处理",
voice="zh-CN-XiaoxiaoNeural", # 指定语音角色
speed=1.2 # 设置语速
)
优势:
通知内容更灵活,可动态生成
信息传递更直观清晰
适合需要语音提醒的场景
这样的功能可以让 Bark 的通知系统更加智能和人性化,提升用户体验。
@Finb commented on GitHub (May 12, 2025):
虽然理论上可以实现,但较复杂暂时不考虑增加这个特性,感谢建议!