欢迎关注我👆,收藏下次不迷路┗|`O′|┛ 嗷~~
目录
一.模块介绍
二.文字转语音演示
三.模块代码
一.模块介绍
音频生成模块的主要功能是实现文字转语音,本项目采用百度云api实现。
二.文字转语音演示
这些代码可以实现文本转语音并播放生成的音频文件。
三.模块代码
本设计的功能模块要更加复杂一些:
在这个代码中,可以对本地其他模块传来的文本进行转化,也可以得到云端事项的文本并转化成音频播放。由于“你好主人”的音频频繁出现,因此录制成离线音频减少api调用次数。
非常感谢您花时间阅读我的博客,希望这些分享能为您带来启发和帮助。期待您的反馈与交流,让我们共同成长,再次感谢!
👇个人网站👇