用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/az9713/whatsapp-claude-old --skill tts-openai命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | tts-openai |
| description | Generate high-quality voiceover using OpenAI TTS API |
| allowed-tools | ["Bash","Read","Write"] |
Generate professional voiceover audio using OpenAI's TTS API.
OPENAI_API_KEYcurl installed (standard on most systems)| Voice | Description | Best For |
|---|---|---|
| alloy | Neutral, balanced | General purpose |
| echo | Warm, conversational | Storytelling |
| fable | British accent, narrative | Documentaries |
| onyx | Deep, authoritative | News, serious topics |
| nova | Friendly, upbeat | Tutorials, explainers |
| shimmer | Soft, gentle | Meditation, ASMR |
| Model | Quality | Speed | Cost |
|---|---|---|---|
| tts-1 | Standard | Fast | Lower |
| tts-1-hd | High-definition | Slower | Higher |
# Generate voiceover
curl https://api.openai.com/v1/audio/speech \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tts-1-hd",
"input": "Your script text goes here. This will be converted to speech.",
"voice": "nova"
}' \
--output output/voiceover.mp3
Split into chunks if text is very long (max ~4000 characters per request):
# Generate part 1
curl https://api.openai.com/v1/audio/speech \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tts-1-hd",
"input": "First part of the script...",
"voice": "nova"
}' \
--output output/vo_part1.mp3
# Generate part 2
curl https://api.openai.com/v1/audio/speech \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tts-1-hd",
"input": "Second part of the script...",
"voice": "nova"
}' \
--output output/vo_part2.mp3
# Combine parts
ffmpeg -i "concat:output/vo_part1.mp3|output/vo_part2.mp3" \
-acodec copy output/voiceover_combined.mp3
ffmpeg -i output/voiceover.mp3 \
-filter:a loudnorm=I=-16:TP=-1.5:LRA=11 \
output/voiceover_normalized.mp3
# Mix voiceover with background music (music at 15% volume)
ffmpeg -i output/voiceover.mp3 -i assets/music/background.mp3 \
-filter_complex "[1:a]volume=0.15[bg];[0:a][bg]amix=inputs=2:duration=first" \
output/voiceover_with_music.mp3
ffprobe -v error -show_entries format=duration \
-of default=noprint_wrappers=1:nokey=1 \
output/voiceover.mp3
| Content Type | Recommended Voice |
|---|---|
| Tech news | onyx (authoritative) |
| Tutorials | nova (friendly) |
| Storytelling | fable or echo |
| General | alloy |
| Calm/ASMR | shimmer |
| Model | Cost per 1M chars | ~Cost per minute |
|---|---|---|
| tts-1 | $15.00 | ~$0.10 |
| tts-1-hd | $30.00 | ~$0.20 |
(Based on ~150 words/min, ~6 chars/word = ~900 chars/min)
Save audio files to:
output/voiceover_{project}.mp3output/voiceover_{project}_normalized.mp3output/voiceover_{project}_final.mp3