txt2mp3 Skill

SkillFiles & storage

Converts text content into MP3 audio files, with optional direct read-aloud. Use when the user mentions text-to-speech, TTS, text reading, or AI voiceover.

Use txt2mp3 Skill in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add txt2mp3 Skill and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the txt2mp3 Skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

txt2mp3 SkillStart free

What this skill tells your AI

The instructions your AI receives, as published by coderwanfeng/python-office in skills/video/txt2mp3/SKILL.md and read by ahel’s review.

文本转语音

功能描述

将文本内容转换为 mp3 语音文件,并可选择是否直接播放。

所属分类

office/skills/video/txt2mp3/

调用方式

from skills.video import txt2mp3

txt2mp3(
    content='你好,世界',
    file=None,
    mp3='./hello.mp3',
    speak=True
)

参数说明

参数类型必填默认值说明
contentstr否'程序员晚枫'需要转换的内容
filestr否None指定读取的文件,优先级最高
mp3str否'./程序员晚枫.mp3'需要保存的 mp3 位置和名称。填 None 不保存
speakbool否True是否直接朗读

返回值

None

使用示例

from skills.video import txt2mp3
# 直接朗读
txt2mp3(content='你好,世界', mp3=None, speak=True)
# 保存为 mp3 文件
txt2mp3(content='你好,世界', mp3='./hello.mp3', speak=False)

原始函数

office.api.video.txt2mp3

Signals

GitHub stars
1k
Forks
303
Last commit
Aug 2026
Advanced
Item type
skill
Key
txt2mp3
Source
github.com/coderwanfeng/python-office