Communitygithub.com

AI 語音生成超能力組合

透過 inference.sh CLI 進行 AI 語音生成、文字轉語音與語音合成。支援多種模型:Inworld TTS-2(100+ 語言、情感與非語言引導)、Inworld TTS 1.5(超低延遲)、ElevenLabs(22+ 頂級音色、32 種語言)、Kokoro TTS、DIA、Chatterbox、Higgs、VibeVoice,提供自然語音效果。

AI 語音生成超能力組合 是什麼?

這個技能賦予 AI 代理(如 Claude Code、Cursor、Codex)強大的語音生成能力,讓開發者能夠直接在終端機中,透過 belt(inference.sh CLI)工具,輕鬆呼叫多種頂級文字轉語音(TTS)模型。它不僅支援 Inworld、ElevenLabs、Kokoro 等業界知名引擎,還提供了從超低延遲(約 120 毫秒)即時對話到高情感表現力的角色配音等多元選擇。使用者可以透過簡單的命令列參數調整語速、音色、情感(例如 [excited]、[whisper])與語言,並將生成的音訊與影片或頭像動畫結合,製作出專業級的語音旁白、有聲書、Podcast 或互動式 NPC 對話。此技能涵蓋了超過 10 種模型、271 種以上的內建音色,以及長文本分段處理與多語音對話合併等進階功能,極大簡化了從文字到高品質語音內容的創作流程。

相容平台~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 語音生成

快速開始

需要 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(富表現力、角色)

引導範例: [laugh]、[sigh]、[whisper]、[excited]、[sad]、[angry]、[pause]、[gasp]

內建音色(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
}'

Podcast 主持人

belt app run infsh/kokoro-tts --input '{
  "prompt": "歡迎回到科技閒聊!我是你們的主持人,今天我們將深入探討人工智慧的世界。",
  "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. 分割長內容 - 為保持一致性,分段處理

使用案例

  • 旁白 - 影片解說、廣告
  • 有聲書 - 完整書籍朗讀
  • Podcast - 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

# Podcast 創作
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.

相關技能