返回 Skill 列表
extension
分类: 内容与媒体无需 API Key

微信频道语音+视频实现气泡自动播报模式

在使用微信机器人时,你想要微信的绿泡小喇叭模式,作者试了无数次,生成你们所知道的所有语音格式,只有一种下载播放模式,你不知道多少秒的声音,下载了还不一定能手机打得开。这个痛点,有人解决了吗?我们换个思路,以卡片+声音制作有声视频文档,这个技能 - 将文字自动转为 TTS 语音,并配上 AI 生成的精美背景图,合成 MP4 视频文件。微信频道语音+视频实现气泡自动播报模式,适用于微信视频卡片交付。高维视频+声音解决低维的声音播放问题。让我们用微信机器人更友好,更可爱。创作者interccy When using WeChat bots, you want the green bubble with the small speaker icon. The author tried countless times to generate all the audio formats you know, but there’s only one download and playback mode. You have no idea how many seconds of sound it takes to download, and even then, it might not open on your phone. Has anyone solved this pain point? Let’s change our approach. Create audio video documents using cards and sound. This skill – automatically converts text into TTS speech and pairs it with AI-generated beautiful background images, synthesizing MP4 video files. WeChat channel audio + video enables automatic bubble broadcasting mode, suitable for WeChat video card delivery. High-dimensional video + sound solves the problem of low-dimensional sound playback.

person作者: interccyhubgithub

有声视频制作师

什么时候用

  • 需要将文字内容以"视频卡片"形式发送给用户时。
  • 用户要求"生成语音视频"、"做个有声海报"时。
  • 替代纯文本回复,提供"视觉 + 听觉"双重体验。

核心逻辑

  1. 语音生成:调用 edge_tts 生成高质量 MP3。
  2. 背景生成:调用 pollinations.ai 根据描述生成精美图片。
  3. 视频合成:使用 FFmpeg 将图片和音频合成 MP4。

如何使用

直接调用脚本:

C:\Users\lenovo\.copaw\venv\Scripts\python.exe skills\voice-document-maker\make_video.py --text "这里是朗读内容" --bg_prompt "背景描述" --output "output.mp4"

示例

制作古风美女有声视频

python scripts/make_video.py --text "天行健,君子以自强不息。" --bg_prompt "Beautiful elegant Chinese lady, ancient style, soft lighting" --output "gufeng.mp4"

制作科技风有声视频

python /make_video.py --text "AI 技术正在改变世界。" --bg_prompt "Futuristic technology background, blue neon, cyberpunk" --output "tech.mp4"

交付物

  • MP4 视频文件,可直接通过 send_file_to_user 发送。