Text-to-Speech
Convert text to natural speech via inference.sh CLI.

Quick Start
CODEBLOCK0
Install note: The install script only detects your OS/architecture, downloads the matching binary from dist.inference.sh, and verifies its SHA-256 checksum. No elevated permissions or background processes. Manual install & verification available.
Available Models
| Model | App ID | Best For |
|---|
| DIA TTS | INLINECODE1 | Conversational, expressive |
| Kokoro TTS |
infsh/kokoro-tts | Fast, natural |
| Chatterbox |
infsh/chatterbox | General purpose |
| Higgs Audio |
infsh/higgs-audio | Emotional control |
| VibeVoice |
infsh/vibevoice | Podcasts, long-form |
Browse All Audio Apps
CODEBLOCK1
Examples
Basic Text-to-Speech
CODEBLOCK2
Conversational TTS with DIA
CODEBLOCK3
Long-form Audio (Podcasts)
CODEBLOCK4
Expressive Speech with Higgs
CODEBLOCK5
Use Cases
- - Voiceovers: Product demos, explainer videos
- Audiobooks: Convert text to spoken word
- Podcasts: Generate podcast episodes
- Accessibility: Make content accessible
- IVR: Phone system voice prompts
- Video Narration: Add narration to videos
Combine with Video
Generate speech, then create a talking head video:
CODEBLOCK6
Related Skills
CODEBLOCK7
Browse all apps: INLINECODE6
Documentation
文本转语音
通过 inference.sh 命令行工具将文本转换为自然语音。

快速开始
bash
安装命令行工具
curl -fsSL https://cli.inference.sh | sh && infsh login
生成语音
infsh app run infsh/kokoro-tts --input {text: 你好,欢迎来到我们的产品演示。}
安装说明: 安装脚本仅检测您的操作系统/架构,从 dist.inference.sh 下载匹配的二进制文件,并验证其 SHA-256 校验和。无需提升权限或后台进程。提供手动安装与验证。
可用模型
| 模型 | 应用 ID | 最佳用途 |
|---|
| DIA TTS | infsh/dia-tts | 对话式、富有表现力 |
| Kokoro TTS |
infsh/kokoro-tts | 快速、自然 |
| Chatterbox | infsh/chatterbox | 通用 |
| Higgs Audio | infsh/higgs-audio | 情感控制 |
| VibeVoice | infsh/vibevoice | 播客、长文本 |
浏览所有音频应用
bash
infsh app list --category audio
示例
基础文本转语音
bash
infsh app run infsh/kokoro-tts --input {text: 欢迎来到我们的教程。}
使用 DIA 的对话式 TTS
bash
infsh app sample infsh/dia-tts --save input.json
编辑 input.json:
{
text: 嘿!你今天过得怎么样?我真的很兴奋能和你分享这个。,
voice: conversational
}
infsh app run infsh/dia-tts --input input.json
长文本音频(播客)
bash
infsh app sample infsh/vibevoice --save input.json
用您的播客脚本编辑 input.json
infsh app run infsh/vibevoice --input input.json
使用 Higgs 的情感化语音
bash
infsh app sample infsh/higgs-audio --save input.json
{
text: 这简直太不可思议了!,
emotion: excited
}
infsh app run infsh/higgs-audio --input input.json
使用场景
- - 配音:产品演示、解说视频
- 有声书:将文本转换为语音
- 播客:生成播客节目
- 无障碍:让内容更易访问
- IVR:电话系统语音提示
- 视频旁白:为视频添加旁白
与视频结合
生成语音,然后创建虚拟人物视频:
bash
1. 生成语音
infsh app run infsh/kokoro-tts --input {text: 您的脚本内容} > speech.json
2. 使用音频 URL 与 OmniHuman 创建虚拟形象视频
infsh app run bytedance/omnihuman-1-5 --input {
image_url: https://portrait.jpg,
audio_url: <步骤1中的音频URL>
}
相关技能
bash
完整平台技能(150+ 应用)
npx skills add inference-sh/skills@inference-sh
AI 虚拟形象(结合 TTS 与虚拟人物)
npx skills add inference-sh/skills@ai-avatar-video
AI 音乐生成
npx skills add inference-sh/skills@ai-music-generation
语音转文本(转录)
npx skills add inference-sh/skills@speech-to-text
视频生成
npx skills add inference-sh/skills@ai-video-generation
浏览所有应用:infsh app list
文档