Ai Voice Cloning
Flagged@okaris
{"isSafe":false,"isSuspicious":true,"riskLevel":"medium","findings":[{"category":"shell_command","severity":"high","description":"Install script fetched from a remote URL and executed directly via curl -fsSL https://cli.inference.sh | sh, which is a remote code execution pattern that can run arbitrary code on the host.","evidence":"curl -fsSL https://cli.inference.sh | sh"}],"summary":"The content is largely standard for AI voice generation workflows, but includes a risky remote-install pattern (curl ... | sh) that executes code from a remote source. This pattern can be dangerous if the source is compromised or untrusted. Recommend replacing with a safer install workflow (download to a file, verify checksums, then run) and ensuring users understand the security implications."}
npx machina-cli add skill @okaris/ai-voice-cloning --openclawAI Voice Generation
Generate natural AI voices via inference.sh CLI.

Quick Start
curl -fsSL https://cli.inference.sh | sh && infsh login
# Generate speech
infsh app run infsh/kokoro-tts --input '{
"text": "Hello! This is an AI-generated voice that sounds natural and engaging.",
"voice": "af_sarah"
}'
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 |
|---|---|---|
| Kokoro TTS | infsh/kokoro-tts | Natural, multiple voices |
| DIA | infsh/dia-tts | Conversational, expressive |
| Chatterbox | infsh/chatterbox | Casual, entertainment |
| Higgs | infsh/higgs-tts | Professional narration |
| VibeVoice | infsh/vibevoice | Emotional range |
Kokoro Voice Library
American English
| Voice ID | Gender | Style |
|---|---|---|
af_sarah | Female | Warm, friendly |
af_nicole | Female | Professional |
af_sky | Female | Youthful |
am_michael | Male | Authoritative |
am_adam | Male | Conversational |
am_echo | Male | Clear, neutral |
British English
| Voice ID | Gender | Style |
|---|---|---|
bf_emma | Female | Refined |
bf_isabella | Female | Warm |
bm_george | Male | Classic |
bm_lewis | Male | Modern |
Voice Generation Examples
Professional Narration
infsh app run infsh/kokoro-tts --input '{
"text": "Welcome to our quarterly earnings call. Today we will discuss the financial performance and strategic initiatives for the past quarter.",
"voice": "am_michael",
"speed": 1.0
}'
Conversational Style
infsh app run infsh/dia-tts --input '{
"text": "Hey, so I was thinking about that project we discussed. What if we tried a different approach?",
"voice": "conversational"
}'
Audiobook Narration
infsh app run infsh/kokoro-tts --input '{
"text": "Chapter One. The morning mist hung low over the valley as Sarah made her way down the winding path. She had been walking for hours.",
"voice": "bf_emma",
"speed": 0.9
}'
Video Voiceover
infsh app run infsh/kokoro-tts --input '{
"text": "Introducing the next generation of productivity. Work smarter, not harder.",
"voice": "af_nicole",
"speed": 1.1
}'
Podcast Host
infsh app run infsh/kokoro-tts --input '{
"text": "Welcome back to Tech Talk! Im your host, and today we are diving deep into the world of artificial intelligence.",
"voice": "am_adam"
}'
Multi-Voice Conversation
# Generate dialogue between two speakers
# Speaker 1
infsh app run infsh/kokoro-tts --input '{
"text": "Have you seen the latest AI developments? Its incredible how fast things are moving.",
"voice": "am_michael"
}' > speaker1.json
# Speaker 2
infsh app run infsh/kokoro-tts --input '{
"text": "I know, right? Just last week I tried that new image generator and was blown away.",
"voice": "af_sarah"
}' > speaker2.json
# Merge conversation
infsh app run infsh/media-merger --input '{
"audio_files": ["<speaker1-url>", "<speaker2-url>"],
"crossfade_ms": 300
}'
Long-Form Content
Chunked Processing
For content over 5000 characters, split into chunks:
# Process long text in chunks
TEXT="Your very long text here..."
# Split and generate
# Chunk 1
infsh app run infsh/kokoro-tts --input '{
"text": "<chunk-1>",
"voice": "bf_emma"
}' > chunk1.json
# Chunk 2
infsh app run infsh/kokoro-tts --input '{
"text": "<chunk-2>",
"voice": "bf_emma"
}' > chunk2.json
# Merge chunks
infsh app run infsh/media-merger --input '{
"audio_files": ["<chunk1-url>", "<chunk2-url>"],
"crossfade_ms": 100
}'
Voice + Video Workflow
Add Voiceover to Video
# 1. Generate voiceover
infsh app run infsh/kokoro-tts --input '{
"text": "This stunning footage shows the beauty of nature in its purest form.",
"voice": "am_michael"
}' > voiceover.json
# 2. Merge with video
infsh app run infsh/media-merger --input '{
"video_url": "https://your-video.mp4",
"audio_url": "<voiceover-url>"
}'
Create Talking Head
# 1. Generate speech
infsh app run infsh/kokoro-tts --input '{
"text": "Hi, Im excited to share some updates with you today.",
"voice": "af_sarah"
}' > speech.json
# 2. Animate with avatar
infsh app run bytedance/omnihuman-1-5 --input '{
"image_url": "https://portrait.jpg",
"audio_url": "<speech-url>"
}'
Speed and Pacing
| Speed | Effect | Use For |
|---|---|---|
| 0.8 | Slow, deliberate | Audiobooks, meditation |
| 0.9 | Slightly slow | Education, tutorials |
| 1.0 | Normal | General purpose |
| 1.1 | Slightly fast | Commercials, energy |
| 1.2 | Fast | Quick announcements |
# Slow narration
infsh app run infsh/kokoro-tts --input '{
"text": "Take a deep breath. Let yourself relax.",
"voice": "bf_emma",
"speed": 0.8
}'
Punctuation for Pacing
Use punctuation to control speech rhythm:
| Punctuation | Effect |
|---|---|
Period . | Full pause |
Comma , | Brief pause |
... | Extended pause |
! | Emphasis |
? | Question intonation |
- | Quick break |
infsh app run infsh/kokoro-tts --input '{
"text": "Wait... Did you hear that? Something is coming. Something big!",
"voice": "am_adam"
}'
Best Practices
- Match voice to content - Professional voice for business, casual for social
- Use punctuation - Control pacing with periods and commas
- Keep sentences short - Easier to generate and sounds more natural
- Test different voices - Same text sounds different across voices
- Adjust speed - Slightly slower often sounds more natural
- Break long content - Process in chunks for consistency
Use Cases
- Voiceovers - Video narration, commercials
- Audiobooks - Full book narration
- Podcasts - AI hosts and guests
- E-learning - Course narration
- Accessibility - Screen reader content
- IVR - Phone system messages
- Content localization - Translate and voice
Related Skills
# All TTS models
npx skills add inference-sh/skills@text-to-speech
# Podcast creation
npx skills add inference-sh/skills@ai-podcast-creation
# AI avatars
npx skills add inference-sh/skills@ai-avatar-video
# Video generation
npx skills add inference-sh/skills@ai-video-generation
# Full platform skill
npx skills add inference-sh/skills@inference-sh
Browse audio apps: infsh app list --category audio
Overview
AI Voice Cloning enables generating natural AI voices through the inference.sh CLI using models like Kokoro TTS, DIA, Chatterbox, Higgs, and VibeVoice. It supports multiple voices, emotions, accents, long-form narration, and conversational style for voiceovers, audiobooks, podcasts, video narration, and accessibility.
How This Skill Works
Install the inference.sh CLI, login, then invoke infsh app run with a model and a JSON payload containing text and a voice ID. The selected model (e.g., Kokoro TTS for narration or DIA for conversational speech) renders speech that matches the specified voice, and speed or other parameters can refine pacing.
When to Use It
- Produce video voiceovers for marketing, product demos, or tutorials using natural voices.
- Narrate long-form content like audiobooks or training materials with consistent tone.
- Create podcast intros, outros, or host dialogue with distinct voices.
- Develop accessible narrated content for visually impaired audiences.
- Deliver international content by using American or British English voices and accents.
Quick Start
- Step 1: Install the CLI and login: curl -fsSL https://cli.inference.sh | sh && infsh login
- Step 2: Generate speech: infsh app run infsh/kokoro-tts --input '{"text": "Hello! This is an AI-generated voice that sounds natural and engaging.", "voice": "af_sarah"}'
- Step 3: Iterate with other voices and speeds to match tone and pacing.
Best Practices
- Test multiple voices and models to match the target tone and audience.
- Choose the model that aligns with the content: Kokoro TTS for natural voices, DIA for conversation, Higgs for professional narration, etc.
- Fine-tune pacing with the speed parameter and rehearse pronunciation for long-form narration.
- Split long scripts into logical chunks to maintain coherence and enable consistent voice characteristics.
- Preview outputs and iterate on voice choice, pauses, and emotion range (including the VibeVoice emotional capabilities).
Example Use Cases
- Professional Narration: Welcome to our quarterly earnings call delivered by Kokoro TTS am_michael.
- Conversational Style: A casual project discussion rendered with DIA-tts conversational voice.
- Audiobook Narration: Chapter One read by bf_emma with a warm narration style.
- Video Voiceover: Product launch narration using Kokoro TTS af_nicole with clear pacing.
- Podcast Host: Intro and outro segments voiced by am_adam for Tech Talk.