Loading...
Loading...
使用Dia TTS创建多说话者对话音频。内容涵盖说话者标签、情绪控制、语速节奏、对话流程以及后期制作。适用场景:播客、有声书、讲解视频、角色对话、对话类内容。触发词:对话音频、多说话者、对话音频、Dia TTS、双说话者、播客音频、角色语音、配音、对话生成、对话TTS、多语音、说话者标签、对话录制
npx skill4agent add skill-zero/s dialogue-audiocurl -fsSL https://cli.inference.sh | sh && infsh login
# 双说话者对话
infsh app run falai/dia-tts --input '{
"prompt": "[S1] Have you tried the new feature yet? [S2] Not yet, but I heard it saves a ton of time. [S1] It really does. I cut my workflow in half. [S2] Okay, I am definitely trying it today."
}'[S1][S2]| 标签 | 角色 | 语音 |
|---|---|---|
| 说话者1 | 自动分配语音A |
| 说话者2 | 自动分配语音B |
[S1][s1]| 标点符号 | 效果 | 示例 |
|---|---|---|
| 中性、陈述语气、中等停顿 | "This is important." |
| 强调、兴奋、充满活力 | "This is amazing!" |
| 语调上扬、疑问语气 | "Are you sure about that?" |
| 犹豫、语气渐弱、长停顿 | "I thought it would work... but it didn't." |
| 短呼吸停顿 | "First, we analyze. Then, we act." |
| 打断话题或转换思路 | "I was going to say — never mind." |
(laughs) — 笑声
(sighs) — 无奈或释然的叹息
(clears throat) — 引起注意的清嗓子声
(whispers) — 低语
(gasps) — 惊讶的喘气声# 兴奋的对话
infsh app run falai/dia-tts --input '{
"prompt": "[S1] Guess what happened today! [S2] What? Tell me! [S1] We hit ten thousand users! [S2] (gasps) No way! That is incredible! [S1] I know... I still cannot believe it."
}'
# 严肃/深思的对话
infsh app run falai/dia-tts --input '{
"prompt": "[S1] We need to talk about the timeline. [S2] (sighs) I know. It is tight. [S1] Can we cut anything from the scope? [S2] Maybe... but it would mean dropping the analytics dashboard. [S1] That is a tough trade-off."
}'
# 教学/讲解类对话
infsh app run falai/dia-tts --input '{
"prompt": "[S1] So how does it actually work? [S2] Great question. Think of it like a pipeline. Data comes in on one end, gets processed in the middle, and comes out transformed on the other side. [S1] Like an assembly line? [S2] Exactly! Each step adds something."
}'| 技巧 | 停顿时长 | 适用场景 |
|---|---|---|
逗号 | ~0.3秒 | 分句、列表项之间 |
句号 | ~0.5秒 | 句子之间 |
省略号 | ~1.0秒 | 戏剧性停顿、思考、犹豫 |
| 新说话者标签 | ~0.3秒 | 自然的对话交替间隙 |
# 快节奏、充满活力
infsh app run falai/dia-tts --input '{
"prompt": "[S1] Ready? [S2] Ready. [S1] Let us go! Three features. Five minutes. [S2] Hit it! [S1] Feature one: real-time sync."
}'
# 缓慢、沉思
infsh app run falai/dia-tts --input '{
"prompt": "[S1] I have been thinking about this for a while... and I think we need to change direction. [S2] What do you mean? [S1] The market has shifted. What worked last year... is not working now."
}'infsh app run falai/dia-tts --input '{
"prompt": "[S1] Welcome to the show. Today we have a special guest. Tell us about yourself. [S2] Thanks for having me! I am a product designer, and I have been building tools for creators for about ten years. [S1] What got you started in design? [S2] Honestly? I was terrible at coding but loved making things look good. (laughs) So design was the natural path."
}'infsh app run falai/dia-tts --input '{
"prompt": "[S1] Can you walk me through the setup process? [S2] Sure. Step one, install the CLI. It takes about thirty seconds. [S1] And then? [S2] Step two, run the login command. It will open your browser for authentication. [S1] That sounds simple. [S2] It is! Step three, you are ready to run your first app."
}'infsh app run falai/dia-tts --input '{
"prompt": "[S1] I think we should go with option A. It is faster to implement. [S2] But option B scales better long-term. [S1] Sure, but we need something shipping this quarter. [S2] Fair point... what if we do A now with a migration path to B? [S1] That could work. Let us prototype it."
}'# 合并并平衡音频
infsh app run infsh/video-audio-merger --input '{
"video": "talking-head.mp4",
"audio": "dialogue.mp3",
"audio_volume": 1.0
}'# 将对话与背景音乐合并
infsh app run infsh/media-merger --input '{
"media": ["dialogue.mp3", "background-music.mp3"]
}'# 片段1:引言
infsh app run falai/dia-tts --input '{
"prompt": "[S1] Welcome back to another episode..."
}'
# 片段2:主要内容
infsh app run falai/dia-tts --input '{
"prompt": "[S1] So let us dive into today s topic..."
}'
# 片段3:收尾
infsh app run falai/dia-tts --input '{
"prompt": "[S1] Great conversation today..."
}'
# 合并所有片段
infsh app run infsh/media-merger --input '{
"media": ["segment1.mp3", "segment2.mp3", "segment3.mp3"]
}'| 建议做法 | 避免做法 |
|---|---|
| 按照日常对话的方式编写 | 按照书面语的方式编写 |
| 使用短句(少于15词) | 使用冗长的学术性句子 |
| 使用缩约形式("can't", "won't") | 使用正式表达("cannot", "will not") |
| 加入自然的填充词("So,", "Well,") | 追求每句都完美无缺 |
| 变换句子长度 | 所有句子长度一致 |
| 加入反应语("Exactly!", "Hmm.") | 单方面的长篇独白 |
| 生成前先大声朗读脚本 | 想当然地认为脚本听起来自然 |
| 错误 | 问题 | 解决方法 |
|---|---|---|
| 独白超过3句 | 听起来像讲座而非对话 | 拆分成多轮对话 |
| 没有情绪变化 | 语调平淡、机械 | 使用标点符号和非语音提示 |
| 缺少说话者标签 | 语音无法交替 | 每个发言都以 |
| 使用正式书面语 | 听起来不自然 | 使用缩约形式和短句 |
| 话题之间没有停顿 | 感觉节奏仓促 | 使用 |
| 全程能量水平一致 | 单调乏味 | 在高低能量时刻之间切换 |
npx skills add inference-sh/skills@text-to-speech
npx skills add inference-sh/skills@ai-podcast-creation
npx skills add inference-sh/skills@ai-avatar-videoinfsh app list