본문으로 건너뛰기
cccskills
무료GitHub에 공개

tts-voiceover

Turn scripts or other text into narration and read-aloud audio, with optional SRT subtitle files timed by sentence. Choose voices and adjust speech settings, then pass the audio to shared scripts for mixing or video narration.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

文字转语音配音:把文案/脚本合成为 AI 语音口播、旁白、朗读音频。**配了 VOICE_PROVIDER 默认走闭源云 TTS(CosyVoice2 等,有情感、像真人),edge 仅无 key 时兜底**(edge 偏机械/AI 味);同步输出分句 SRT 字幕、mp3/wav/m4a。合成后可与 BGM 混音或加到视频作旁白。

当用户说“配音”“文字转语音”“TTS”“AI 配音”“口播语音”“旁白”“朗读”“把这段文字读出来”“生成语音”“语音合成”时使用。

설치 방법 보기

이럴 때 유용합니다

  • Creating narration from a video script
  • Generating read-aloud audio with subtitles
  • Adjusting voices and speaking speed
  • Mixing narration with background music

포함된 파일(2)

  • SKILL.md5.5 KB
  • EASEL-META.md692 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

文字转语音配音(TTS Voiceover)

配置检查路径铁律:先 cd 到运行时说明给出的 Easel 项目根,确认当前目录有 .env 和 skills/shared/scripts/。云 TTS 配置只能用项目根的 skills/shared/scripts/model_registry.py configured --group voice --env-file .env 和 skills/shared/scripts/voice_clone.py check ... --env-file .env 判断;不得在 workspace 跑共享脚本副本,也不得用 env / printenv 推断 Key/URL 缺失。

把文案 / 脚本合成为 AI 语音(口播、旁白、朗读)。共享脚本 skills/shared/scripts/tts.py speak: 默认闭源优先——配了 .env 的 VOICE_PROVIDER(+ VOICE_API_KEY) 就走闭源云 TTS(voice_clone, 按句合成+拼接+分句 SRT,有情感、像真人),没 key 才退 edge(AI 味、生硬,仅兜底)。 --engine closed/edge 可强制;闭源音色用 --voice 传 voice-id(如 FunAudioLLM/CosyVoice2-0.5B:alex), 旁白默认 alex,可用 VOICE_NARRATOR_VOICE_ID 覆盖。合成后语音可交 audio_ops.py/video_ops.py 混音或加到视频。

输入

字段必填说明
text / file是待配音的文本,或文本文件路径(长文本推荐 --file)
voice否音色,默认 zh-CN-XiaoxiaoNeural(晓晓)
rate/volume/pitch否语速 / 音量 / 音调微调
output否默认 outputs/主题名/{name}.mp3

输出

  • 配音音频文件(mp3,可选 wav/m4a),放入 outputs/主题名/
  • 可选同步输出 SRT 字幕(--subtitle),供视频烧字幕用
  • 打印实际执行的 edge-tts 命令 + 输出文件时长/大小/音色

前置:外网代理

edge-tts 调微软在线服务,必须能访问外网。内网环境先设代理:

export https_proxy=http://<代理host>:<端口> http_proxy=http://<代理host>:<端口>

脚本会自动读环境变量代理并透传给 edge-tts(也可用 --proxy 覆盖)。

执行步骤

脚本路径(相对项目根):skills/shared/scripts/tts.py。每个子命令支持 -h。

0. 挑音色(可选)

python skills/shared/scripts/tts.py voices          # 常用中文音色 + 简介
python skills/shared/scripts/tts.py voices --all    # 拉全量 zh- 音色(需外网)

1. 合成配音 speak

# 最简:一句话 → mp3
python skills/shared/scripts/tts.py speak --text "欢迎来到本期内容" \
  -o outputs/主题名/intro.mp3

# 长文本从文件读 + 换音色 + 加速 10%
python skills/shared/scripts/tts.py speak --file script.txt \
  -o outputs/主题名/narration.mp3 --voice zh-CN-YunxiNeural --rate +10%

# 同步出 SRT 字幕(视频烧字幕用)
python skills/shared/scripts/tts.py speak --file script.txt \
  -o outputs/主题名/vo.mp3 --subtitle outputs/主题名/vo.srt

# 输出 wav(需 ffmpeg,便于后续无损处理)
python skills/shared/scripts/tts.py speak --text "……" \
  -o outputs/主题名/vo.wav --format wav

参数:--rate +10%(语速)、--volume +20%(音量)、--pitch +2Hz(音调)。

2. 后处理(可选,复用已有共享脚本)

配音出来后按需接下游脚本,无需在本 SKILL 重造能力:

# ① 音频文件内配音 + BGM 混音(配音 1.0 / BGM 0.3)→ 用 audio_mix.py
python skills/shared/scripts/audio_mix.py mix --voice vo.mp3 --bgm bgm.mp3 \
  --voice-volume 1.0 --bgm-volume 0.3 -o vo_bgm.mp3

# ② 配音音量归一化到社媒响度(-14 LUFS)
python skills/shared/scripts/audio_ops.py normalize vo.mp3 -o vo_norm.mp3

# ③ 把配音作为旁白加到视频
python skills/shared/scripts/video_ops.py bgm -i clip.mp4 -o clip_vo.mp4 \
  --music vo.mp3 --voice-volume 0.4 --music-volume 1.0 --music-loop-off

常用中文音色

音色特点
zh-CN-XiaoxiaoNeural晓晓 · 女声,温暖亲和,通用首选(默认)
zh-CN-XiaoyiNeural晓伊 · 女声,活泼年轻,口播/种草
zh-CN-YunxiNeural云希 · 男声,清朗自然,旁白/解说
zh-CN-YunyangNeural云扬 · 男声,专业沉稳,新闻/播报
zh-CN-YunjianNeural云健 · 男声,浑厚有力,激情内容

粤语用 zh-HK-HiuMaanNeural(曉曼),台式用 zh-TW-HsiaoChenNeural(曉臻)。

规则

  1. 绝不覆盖原始素材 — 只写新文件到 outputs/主题名/。
  2. 长文本走 --file — 避免命令行过长 / 换行转义问题。
  3. 先设代理 — edge-tts 需外网,网络失败脚本会给明确提示。
  4. 不重造能力 — 混音/归一化/加视频旁白复用 audio_ops.py / video_ops.py。
  5. 无 Profile 也能用 — 无画像时用默认音色晓晓。

Profile 感知

有 Profile 时可读取账号偏好音色 / 语速 / 平台调性(如口播偏活泼晓伊、 知识类偏沉稳云扬)作为默认参数;无 Profile 退到通用默认(晓晓、正常语速)。

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Generate images from written descriptions, transform existing images with editing instructions, or create several variations. Choose image dimensions and quantity, then save the results using an OpenAI-compatible service or apimart with your own API key.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Generating an illustration from a written description
  • Changing an image's background using instructions
  • Creating several variations of an existing image
ZJU-REAL/Easel4천2026년 10월 21일 업데이트

ai-music

무료

Generate background music for short videos, vlogs, and social posts from descriptions of mood, style, and instruments. Download MP3 audio, optionally include sung lyrics, and use shared scripts to trim tracks, adjust loudness, or add music to videos.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Generating background music for a vlog intro
  • Creating instrumental music to match a social post
  • Generating a sung track from supplied lyrics
ZJU-REAL/Easel4천2026년 10월 21일 업데이트

Create new videos from written scene descriptions or still images using external AI services. Set the aspect ratio and duration, animate a character image, and request generated audio when the selected model supports it.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Generate a short video from a scene description
  • Animate a still image
  • Create character motion from a starting image
ZJU-REAL/Easel4천2026년 10월 21일 업데이트

Organize generated images, videos, and text in outputs/ by date, platform, and type. Add tags, search filenames and content, produce asset lists and reports, and preview archive moves before applying them to make past work easier to reuse.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Organizing generated assets by date, platform, and type
  • Finding past content through keywords and tags
  • Listing assets for a specific account or platform
ZJU-REAL/Easel4천2026년 10월 21일 업데이트

Reduce background noise in audio recordings or video soundtracks with three processing levels. Keep the original file, create a cleaned version, and receive a report of the settings used and file details before and after processing.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reducing fan or air conditioner noise in recordings
  • Cleaning speech in podcasts and interviews
  • Reducing noise in a video's audio track
ZJU-REAL/Easel4천2026년 10월 21일 업데이트

Edit audio files by trimming sections, converting formats, matching loudness, or extracting sound from videos. You can also join recordings, add fades, and change playback speed while keeping the original pitch.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Trim a recording to the section you need
  • Convert audio formats and match loudness
  • Extract audio from a video
ZJU-REAL/Easel4천2026년 10월 21일 업데이트

ZJU-REAL의 스킬 모두 보기

이 스킬의 문제 신고