---
id: sm-text-to-speech
name: "text-to-speech"
url: https://skills.yangsir.net/skill/sm-text-to-speech
author: inferen-sh
domain: multimedia
tags: ["text-to-speech-(tts)", "voice-synthesis", "ai-voices", "audio-content", "accessibility"]
install_count: 6541
rating: 4.50 (262 reviews)
github: https://github.com/inferen-sh/skills
---

# text-to-speech

> 将文本内容转化为自然流畅的语音输出，适用于多种多媒体应用场景，提升用户听觉体验和内容可访问性。

**Stats**: 6,541 installs · 4.5/5 (262 reviews)

## Before / After 对比

### 文本转语音自然度与效率对比

| Metric | Before | After | Change |
|---|---|---|---|
| - | - | - | - |
| - | - | - | - |
| - | - | - | - |

## Readme

# text-to-speech

# Text-to-Speech

Convert text to natural speech via [inference.sh](https://inference.sh) CLI.

## Quick Start

Requires inference.sh CLI (`infsh`). [Install instructions](https://raw.githubusercontent.com/inference-sh/skills/refs/heads/main/cli-install.md)

```
infsh login

# Generate speech
infsh app run infsh/kokoro-tts --input '{"text": "Hello, welcome to our product demo."}'

```

## Available Models

Model
App ID
Best For

ElevenLabs TTS
`elevenlabs/tts`
Premium quality, 22+ voices, 32 languages

DIA TTS
`infsh/dia-tts`
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

```
infsh app list --category audio

```

## Examples

### Basic Text-to-Speech

```
infsh app run infsh/kokoro-tts --input '{"text": "Welcome to our tutorial."}'

```

### Conversational TTS with DIA

```
infsh app sample infsh/dia-tts --save input.json

# Edit input.json:
# {
#   "text": "Hey! How are you doing today? I'm really excited to share this with you.",
#   "voice": "conversational"
# }

infsh app run infsh/dia-tts --input input.json

```

### Long-form Audio (Podcasts)

```
infsh app sample infsh/vibevoice --save input.json

# Edit input.json with your podcast script
infsh app run infsh/vibevoice --input input.json

```

### Expressive Speech with Higgs

```
infsh app sample infsh/higgs-audio --save input.json

# {
#   "text": "This is absolutely incredible!",
#   "emotion": "excited"
# }

infsh app run infsh/higgs-audio --input input.json

```

## 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:

```
# 1. Generate speech
infsh app run infsh/kokoro-tts --input '{"text": "Your script here"}' > speech.json

# 2. Use the audio URL with OmniHuman for avatar video
infsh app run bytedance/omnihuman-1-5 --input '{
  "image_url": "https://portrait.jpg",
  "audio_url": "<audio-url-from-step-1>"
}'

```

## Related Skills

```
# ElevenLabs TTS (premium, 22+ voices)
npx skills add inference-sh/skills@elevenlabs-tts

# ElevenLabs dialogue (multi-speaker)
npx skills add inference-sh/skills@elevenlabs-dialogue

# Full platform skill (all 150+ apps)
npx skills add inference-sh/skills@infsh-cli

# AI avatars (combine TTS with talking heads)
npx skills add inference-sh/skills@ai-avatar-video

# AI music generation
npx skills add inference-sh/skills@ai-music-generation

# Speech-to-text (transcription)
npx skills add inference-sh/skills@speech-to-text

# Video generation
npx skills add inference-sh/skills@ai-video-generation

```

Browse all apps: `infsh app list`

## Documentation

- [Running Apps](https://inference.sh/docs/apps/running) - How to run apps via CLI

- [Audio Transcription Example](https://inference.sh/docs/examples/audio-transcription) - Audio processing workflows

- [Apps Overview](https://inference.sh/docs/apps/overview) - Understanding the app ecosystem

Weekly Installs4.4KRepository[inferen-sh/skills](https://github.com/inferen-sh/skills)GitHub Stars159First Seen6 days agoSecurity Audits[Gen Agent Trust HubPass](/inferen-sh/skills/text-to-speech/security/agent-trust-hub)[SocketWarn](/inferen-sh/skills/text-to-speech/security/socket)[SnykWarn](/inferen-sh/skills/text-to-speech/security/snyk)Installed onclaude-code3.5Kgemini-cli3.1Kcodex3.1Kamp3.1Kkimi-cli3.1Kgithub-copilot3.1K

---
*Source: https://skills.yangsir.net/skill/sm-text-to-speech*
*Markdown mirror: https://skills.yangsir.net/api/skill/sm-text-to-speech/markdown*