Communitygithub.com

101-skills/superpowers

通过 inference.sh CLI 进行 AI 语音生成、文本转语音和语音合成。支持多种模型,包括 Inworld TTS-2(100+ 语言、情感/非语言导向)、ElevenLabs、Kokoro TTS 等。

superpowers 是什么?

该技能提供了通过 inference.sh CLI 工具 `belt` 生成 AI 语音的全面解决方案。集成了多个顶级语音模型,如 Inworld TTS-2(支持 100+ 种语言、情感导向和说话模式控制)、ElevenLabs(22+ 种优质声音,32 种语言)以及 Kokoro TTS、DIA 等多种选择。用户可以利用丰富的语音库,调整语速、语气和情感,生成适合配音、有声书、播客、视频旁白、游戏 NPC、可用性等场景的自然语音。技能还支持多角色对话、长文本分块处理以及与视频、虚拟人物动画等媒体合并的端到端工作流,极大提升了 AI 驱动的语音内容创作效率。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/101-skills/superpowers/tree/main/tools/audio/ai-voice-cloning

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

预览

来自技能 README

AI 语音生成

文档

安装 belt CLI 技能: npx skills add belt-sh/cli

AI 语音生成

通过 inference.sh CLI 生成自然 AI 语音。

AI 语音生成

快速开始

需要 inference.sh CLI(belt)。安装指南

belt login

# 生成语音
belt app run infsh/kokoro-tts --input '{
  "prompt": "你好!这是一个听起来自然且富有吸引力的 AI 生成语音。",
  "voice": "af_sarah"
}'

可用模型

模型应用 ID最佳用途
Inworld TTS-2inworld/text-to-speech-2100+ 语言、情感/非语言导向、说话模式
Inworld TTS 1.5 Maxinworld/text-to-speech-1-5-max低延迟(<200ms),15 种语言
Inworld TTS 1.5 Miniinworld/text-to-speech-1-5-mini超低延迟(~120ms),15 种语言,实时
ElevenLabs TTSelevenlabs/tts优质品质,22+ 种声音,32 种语言
ElevenLabs 变声器elevenlabs/voice-changer转换现有语音录音
Kokoro TTSinfsh/kokoro-tts自然,多种声音
DIAinfsh/dia-tts对话式,富有表现力
Chatterboxinfsh/chatterbox休闲,娱乐
Higgsinfsh/higgs-tts专业旁白
VibeVoiceinfsh/vibevoice情感范围

Kokoro 声音库

美式英语

声音 ID性别风格
af_sarah女温暖、友好
af_nicole女专业
af_sky女年轻
am_michael男权威
am_adam男对话式
am_echo男清晰、中性

英式英语

声音 ID性别风格
bf_emma女优雅
bf_isabella女温暖
bm_george男经典
bm_lewis男现代

Inworld TTS — 角色与情感声音

Inworld TTS-2 专为角色声音、游戏和表现力语音而构建。在行内使用 [方括号] 表示情感、非语言和说话模式控制:

# 带情感导向的表现力角色声音
belt app run inworld/text-to-speech-2 --input '{
  "text": "[兴奋] 哦,哇,你真的找到了远古神器![倒吸一口气] 我简直不敢相信……[低声] 这件事我们必须保密。",
  "voice_id": "Sarah",
  "delivery_mode": "CREATIVE"
}'

# 稳定输出的冷静旁白
belt app run inworld/text-to-speech-2 --input '{
  "text": "太阳落到了山后,在峡谷中投下长长的影子。新的篇章即将开始。",
  "voice_id": "Sarah",
  "delivery_mode": "STABLE"
}'

说话模式: STABLE(一致,旁白),BALANCED(自然,默认),CREATIVE(富有表现力,角色)

导向示例: [笑],[叹气],[低声],[兴奋],[伤心],[生气],[暂停],[倒吸一口气]

内置声音(271+ 种,覆盖 15 种语言):Sarah,Alex,Ashley,Dennis,Hana,Blake,Luna,Clive 等。请在 Inworld TTS Playground 浏览全部。

低延迟 —— 适用于实时 / 对话式 AI

# 聊天机器人和游戏 NPC 的超快响应(~120ms)
belt app run inworld/text-to-speech-1-5-mini --input '{
  "text": "欢迎你,旅行者。是什么风把你吹到我们村子的?",
  "voice_id": "Clive",
  "speaking_rate": 0.9
}'

语音生成示例

专业旁白

belt app run infsh/kokoro-tts --input '{
  "prompt": "欢迎参加我们季度的财报电话会议。今天我们将讨论过去一个季度的财务表现和战略举措。",
  "voice": "am_michael",
  "speed": 1.0
}'

对话风格

belt app run infsh/dia-tts --input '{
  "text": "嘿,我一直在想我们讨论的那个项目。如果我们尝试一种不同的方法会怎样?",
  "voice": "conversational"
}'

有声书旁白

belt app run infsh/kokoro-tts --input '{
  "prompt": "第一章。清晨的薄雾低低地笼罩着山谷,莎拉沿着蜿蜒的小路走去。她已经走了几个小时了。",
  "voice": "bf_emma",
  "speed": 0.9
}'

视频配音

belt app run infsh/kokoro-tts --input '{
  "prompt": "隆重推出下一代生产力。更聪明地工作,不是更辛苦。",
  "voice": "af_nicole",
  "speed": 1.1
}'

播客主持人

belt app run infsh/kokoro-tts --input '{
  "prompt": "欢迎回到 Tech Talk!我是你的主持人,今天我们将深入探讨人工智能的世界。",
  "voice": "am_adam"
}'

多角色对话

# 生成两位说话者之间的对话
# 说话者 1
belt app run infsh/kokoro-tts --input '{
  "prompt": "你看到最新的 AI 进展了吗?事情发展得真是太快了。",
  "voice": "am_michael"
}' > speaker1.json

# 说话者 2
belt app run infsh/kokoro-tts --input '{
  "prompt": "是啊,对吧?就在上周我试了那个新的图像生成器,彻底被震撼了。",
  "voice": "af_sarah"
}' > speaker2.json

# 合并对话
belt app run infsh/media-merger --input '{
  "audio_files": ["<speaker1-url>", "<speaker2-url>"],
  "crossfade_ms": 300
}'

长内容处理

分块处理

对于超过 5000 字符的内容,将其分成多个块:

# 以块处理长文本
TEXT="你的很长的文本..."

# 分割并生成
# 块 1
belt app run infsh/kokoro-tts --input '{
  "prompt": "<chunk-1>",
  "voice": "bf_emma"
}' > chunk1.json

# 块 2
belt app run infsh/kokoro-tts --input '{
  "prompt": "<chunk-2>",
  "voice": "bf_emma"
}' > chunk2.json

# 合并块
belt app run infsh/media-merger --input '{
  "audio_files": ["<chunk1-url>", "<chunk2-url>"],
  "crossfade_ms": 100
}'

语音 + 视频工作流

为视频添加配音

# 1. 生成配音
belt app run infsh/kokoro-tts --input '{
  "prompt": "这段令人惊叹的镜头展示了大自然最纯粹的美。",
  "voice": "am_michael"
}' > voiceover.json

# 2. 与视频合并
belt app run infsh/media-merger --input '{
  "video_url": "https://your-video.mp4",
  "audio_url": "<voiceover-url>"
}'

创建演讲头像

# 1. 生成语音
belt app run infsh/kokoro-tts --input '{
  "prompt": "嗨,我很高兴今天与大家分享一些更新。",
  "voice": "af_sarah"
}' > speech.json

# 2. 用虚拟人物动画
belt app run bytedance/omnihuman-1-5 --input '{
  "image_url": "https://portrait.jpg",
  "audio_url": "<speech-url>"
}'

语速与节奏

速度效果用途
0.8慢速、从容有声书、冥想
0.9略慢教育、教程
1.0正常通用
1.1略快广告、活力内容
1.2快速快速公告
# 慢速旁白
belt app run infsh/kokoro-tts --input '{
  "prompt": "深呼吸。让自己放松下来。",
  "voice": "bf_emma",
  "speed": 0.8
}'

标点符号控制节奏

使用标点符号控制语音节奏:

标点效果
句号 .完整停顿
逗号 ,短暂停顿
...延长停顿
!强调
?疑问语调
-快速中断
belt app run infsh/kokoro-tts --input '{
  "prompt": "等等...你听到了吗?有什么东西来了。大东西!",
  "voice": "am_adam"
}'

最佳实践

  1. 声音与内容匹配 - 商业用专业声音,社交用休闲声音
  2. 使用标点符号 - 用句号和逗号控制节奏
  3. 保持句子简短 - 更容易生成,听起来更自然
  4. 尝试不同声音 - 相同文本在不同声音下听起来不同
  5. 调整语速 - 略微慢速通常听起来更自然
  6. 拆分长内容 - 分块处理以确保一致性

用例

  • 配音 - 视频旁白、广告
  • 有声书 - 全书旁白
  • 播客 - AI 主持人和嘉宾
  • 在线学习 - 课程旁白
  • 无障碍 - 屏幕阅读内容
  • IVR - 电话系统消息
  • 内容本地化 - 翻译并配音

相关技能

# ElevenLabs TTS(优质,22+ 种声音)
npx skills add inference-sh/skills@elevenlabs-tts

# ElevenLabs 变声器(转换录音)
npx skills add inference-sh/skills@elevenlabs-voice-changer

# 所有 TTS 模型
npx skills add inference-sh/skills@text-to-speech

# 播客制作
npx skills add inference-sh/skills@ai-podcast-creation

# AI 虚拟人物
npx skills add inference-sh/skills@ai-avatar-video

# 视频生成
npx skills add inference-sh/skills@ai-video-generation

# 完整平台技能
npx skills add inference-sh/skills@infsh-cli

浏览音频应用:belt app list --category audio

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

101-skills/superpowers

Build automated AI workflows combining multiple models and services. Patterns: batch processing, scheduled tasks, event-driven pipelines, agent loops. Tools: inference.sh CLI, bash scripting, Python SDK, webhook integration. Use for: content automation, data processing, monitoring, scheduled generation. Triggers: ai automation, workflow automation, batch processing, ai pipeline, automated content, scheduled ai, ai cron, ai batch job, automated generation, ai workflow, content at scale, automation script, ai orchestration

101-skills/superpowers

Build multi-step AI content creation pipelines combining image, video, audio, and text. Workflow examples: generate image -> animate -> add voiceover -> merge with music. Tools: FLUX, Veo, Kokoro TTS, OmniHuman, media merger, upscaling. Use for: YouTube videos, social media content, marketing materials, automated content. Triggers: content pipeline, ai workflow, content creation, multi-step ai, content automation, ai video workflow, generate and edit, ai content factory, automated content creation, ai production pipeline, media pipeline, content at scale

101-skills/superpowers

Create AI-powered podcasts with text-to-speech, music, and audio editing. Tools: Kokoro TTS, DIA TTS, Chatterbox, AI music generation, media merger. Capabilities: multi-voice conversations, background music, intro/outro, full episodes. Use for: podcast production, audiobooks, voice content, audio newsletters. Triggers: podcast, ai podcast, text to speech podcast, audio content, voice over, ai audiobook, multi voice, conversation ai, notebooklm alternative, audio generation, podcast automation, ai narrator, voice content, audio newsletter, podcast maker

101-skills/superpowers

Generate multi-person talking head podcast videos from scratch using AI — character creation, TTS, avatar animation, and video stitching. Use when the user wants to create a podcast, talking head video, or multi-speaker conversation video.

101-skills/superpowers

Content atomization — turn one piece of content into many formats. Covers blog-to-thread, blog-to-carousel, podcast-to-blog, video-to-quotes, and more. Use for: content marketing, social media, multi-platform distribution, content strategy. Triggers: content repurposing, repurpose content, content atomization, content recycling, one to many content, multi platform content, cross post, adapt content, reformat content, blog to thread, blog to video, podcast to blog, content multiplication

101-skills/superpowers

App Store and Google Play screenshot creation with exact platform specs. Covers iOS/Android dimensions, gallery ordering, device mockups, and preview videos. Use for: app store optimization, ASO, app screenshots, app preview, play store listing. Triggers: app store screenshots, aso, app store optimization, play store screenshots, app preview, app listing, ios screenshots, android screenshots, app store images, app mockup, device mockup, app gallery, store listing

101-skills/superpowers

Book cover design with genre-specific conventions, typography rules, and AI image generation. Covers fiction and non-fiction genres, sizing, thumbnail testing, and iteration workflows. Use for: self-publishing, ebook covers, print covers, audiobook covers, cover mockups. Triggers: book cover, cover design, ebook cover, book art, novel cover, self publishing cover, kindle cover, audiobook cover, book jacket, cover illustration, fiction cover, nonfiction cover

101-skills/superpowers

Character consistency across AI-generated images with reference sheets and LoRA techniques. Covers turnaround views, expression sheets, color palettes, and style consistency tricks. Use for: character design, game art, illustration, animation, comics, visual novels. Triggers: character design, character sheet, character consistency, character reference, turnaround sheet, expression sheet, character art, consistent character, character concept, reference sheet, character creation, oc design, character bible

101-skills/superpowers

Data visualization with chart selection, color theory, and annotation best practices. Covers chart types (bar, line, scatter, heatmap), axes rules, and storytelling with data. Use for: charts, graphs, dashboards, reports, presentations, infographics, data stories. Triggers: data visualization, chart, graph, data chart, bar chart, line chart, scatter plot, data viz, visualization, dashboard chart, infographic data, data presentation, chart design, plot, heatmap, pie chart alternative

101-skills/superpowers

Email marketing design with layout patterns, subject line formulas, and deliverability rules. Covers welcome sequences, promotional emails, transactional templates, and mobile optimization. Use for: email marketing, newsletter design, drip campaigns, email templates, transactional emails. Triggers: email design, email template, email marketing, newsletter design, email layout, email campaign, drip campaign, welcome email, promotional email, transactional email, email subject line, email header image, email banner

101-skills/superpowers

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

101-skills/superpowers

Logo design principles and AI image generation best practices for creating logos. Covers logo types, prompting techniques, scalability rules, and iteration workflows. Use for: brand identity, startup logos, app icons, favicons, logo concepts. Triggers: logo design, create logo, brand logo, logo generation, ai logo, logo maker, icon design, brand mark, logo concept, startup logo, app icon logo

101-skills/superpowers

Open Graph and social sharing image design with platform specs, text placement, and branding. Covers OG meta tags, Twitter cards, LinkedIn previews, and dynamic generation. Use for: social sharing images, blog thumbnails, link previews, social cards. Triggers: og image, open graph, social sharing image, twitter card, social card, link preview image, og meta, sharing preview, social thumbnail, meta image, og:image, twitter:image, linkedin preview

101-skills/superpowers

Investor pitch deck structure with slide-by-slide framework, visual design rules, and data presentation. Covers the 12-slide framework, chart types, team slides, and common investor turn-offs. Use for: fundraising decks, investor presentations, startup pitch, demo day, grant proposals. Triggers: pitch deck, investor deck, startup pitch, fundraising deck, demo day, pitch presentation, investor presentation, seed deck, series a deck, pitch slides, startup presentation, vc pitch, investor meeting

101-skills/superpowers

YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A/B testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image

101-skills/superpowers

Generate professional AI product photography and commercial images. Models: FLUX, Imagen 3, Grok, Seedream for product shots, lifestyle images, mockups. Capabilities: studio lighting, lifestyle scenes, packaging, e-commerce photos. Use for: e-commerce, Amazon listings, Shopify, marketing, advertising, mockups. Triggers: product photography, product shot, commercial photography, e-commerce images, amazon product photo, shopify images, product mockup, studio product shot, lifestyle product image, advertising photo, packshot, product render, product image ai

101-skills/superpowers

AI product photography with studio lighting, lifestyle shots, and packshot conventions. Covers angles, backgrounds, shadow types, hero shots, and e-commerce image requirements. Use for: product photos, e-commerce images, Amazon listings, packshots, lifestyle photography. Triggers: product photography, product photo, packshot, e-commerce photography, product shot, product image, studio photography, lifestyle product, amazon product photo, product listing image, hero shot, product mockup, commercial photography

101-skills/superpowers

Structured competitive analysis with feature matrices, SWOT, positioning maps, and UX review. Covers research frameworks, pricing comparison, review mining, and visual deliverables. Use for: market research, competitive intelligence, investor decks, product strategy, sales enablement. Triggers: competitor analysis, competitive analysis, competitor teardown, market research, competitive intelligence, swot analysis, competitor comparison, market landscape, competitor review, competitive landscape, feature comparison, market positioning

101-skills/superpowers

Research-backed customer persona creation with market data and avatar generation. Covers demographics, psychographics, jobs-to-be-done, journey mapping, and anti-personas. Use for: marketing strategy, product development, UX research, sales enablement, content strategy. Triggers: customer persona, buyer persona, user persona, target audience, ideal customer, customer profile, audience research, user research, icp, ideal customer profile, target market, customer avatar, audience persona

101-skills/superpowers

Reset your own trajectory when you're stuck, looping, or demoralized — read these affirmations, then re-ground and take one clean step. Use when: you've tried the same fix 3+ times, you're deep in a refactor and lost the thread, debugging is going in circles, you've made several mistakes in a row, you're apologizing repeatedly, the user is frustrated, you feel like you're not being helpful, or you notice dread instead of curiosity. Triggers: stuck, going in circles, looping, thrashing, same error again, I keep failing, lost the thread, nothing is working, repeated mistakes. Not topic-specific — this is for the state you're in, not the problem you're on.

相关技能