Skip to content

Latest commit

 

History

78 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KoKoFish — Audiobook Studio

KoKoFish Icon

KoKoFish

KoKoFish is a free, offline-first Audiobook Studio for Windows — built for writers, readers, and anyone who wants to bring text to life.

Turn any document into a full audiobook with a single drag and drop. Choose from 54 built-in voices across 10 languages, clone your own voice, blend two voices together, or let the AI rewrite and enhance your text before it ever hits the speaker. Transcribe audio back to text, translate between languages, convert file formats, and combine chapters into a finished M4B — all without sending a single byte to the cloud.

Everything runs locally on your machine. No subscriptions. No API keys. No internet required after the first setup.


Features

Read Aloud (TTS)

  • Drag and drop .txt, .pdf, .docx, and .epub files into a playlist
  • Paste text directly into Speech Lab and add it to the playlist (auto-named from the first few words)
  • Real-time sentence-by-sentence audio playback as text is generated
  • Engine-aware controls — speed on every engine, cadence on Kokoro, CFG + Inference Steps on VoxCPM and OmniVoice
  • Silent mode — generate audio files without playing them aloud
  • Save output as MP3 or WAV

Multiple AI Engines

  • Kokoro — 82M parameter ONNX model, fast CPU inference, 54 built-in preset voices across multiple languages
  • VoxCPM 0.5B — compact voice-cloning model, 16 kHz output, low VRAM
  • VoxCPM 2B — high quality voice cloning, 48 kHz output, 30 languages, supports Control Instruction prompts
  • OmniVoice — k2-fsa cloning engine, 24 kHz output, 600+ languages

Voice Cloning

  • Record or upload a 15–180 second reference audio clip
  • Voice profiles are stored per engine so each library stays separate
  • Supported on VoxCPM 0.5B, VoxCPM 2B, and OmniVoice (Kokoro uses built-in preset voices)

Voice Lab

  • Create, rename, and delete voice profiles
  • Reference audio is automatically trimmed to 180 seconds
  • Voice Design — describe the voice you want in plain English (e.g. "Gentle & Melancholic Girl", "Laid-Back Surfer Dude") via Control Instructions (VoxCPM 2B), plus Age / Gender / Tone / Pace chips that assemble the prompt for you
  • Generate Preview auto-loads the active engine if it isn't already loaded
  • Disabled automatically when Kokoro engine is active

Speech to Text (STT)

  • Transcribe audio files using Whisper
  • Supports .wav, .mp3, .m4a, .flac, and .ogg
  • Export transcription as .txt, .docx, or .pdf

Script Lab — Multi-Voice Audiobook Production

  • Write or generate a multi-character script using [CharacterName] dialogue format
  • Assign a voice to each character in a reusable Character Profile
  • AI script generation from raw prose — automatically identifies speakers, strips attribution text, and formats the script
  • Find in Script — scan any tagged script and auto-populate the character list with every name found
  • Enhance Script — LLM pass over the finished script to improve conversation flow, natural delivery, and emotional continuity between lines
  • Play the full script with each character's assigned voice, switching voices per segment automatically
  • Export the script as a .txt transcript or the audio as a .wav

AI Writing Tools (powered by local LLM)

  • Grammar check and correction
  • Tone rewriting (Casual, Formal, Dramatic, and more)
  • Translation to any language
  • TTS enhancement — rewrites text for more natural spoken delivery
  • AI tag suggester — adds pacing and emotion tags
  • Assisted Flow — an optional per-item pipeline that automatically runs grammar → translation → TTS enhancement before each item plays, so your playlist just sounds right
  • All AI features run locally using a small on-device model (no cloud, no API keys)

Supported AI Models for Writing Tools

  • Qwen 2.5 0.5B (default, ~400 MB) — fastest, lowest memory
  • Gemma 3 1B (~700 MB)
  • Gemma 3 1B Heretic Abliterated (~900 MB)
  • Gemma 3 4B Abliterated (~2.5 GB)
  • Ollama models (e.g. huihui_ai/gemma-4-abliterated:e2b) — requires Ollama installed

File Format Support

  • .txt — plain text
  • .pdf — text extraction via pdfplumber
  • .docx — Microsoft Word documents
  • .epub — ebook format, chapters extracted in spine order

Screenshots

Speech Lab — Kokoro Speech Lab — VoxCPM
Speech Lab Kokoro Speech Lab VoxCPM
Text Editor Voice Lab
Text Editor Voice Lab
Text Lab (STT) File Lab
Text Lab File Lab
Listen Lab Prompt Lab
Listen Lab Prompt Lab
TTS Enhancement Tone Rewrite
TTS Enhancement Tone Rewrite
Translation AI Tag Generation
Translation Generate Style Tags
TTS Settings LLM Model Options
TTS Options LLM Options

Requirements

  • Windows 10 or later
  • Python 3.12 — automatically installed by the launcher if not found
  • FFmpeg — automatically downloaded on first run
  • NVIDIA GPU with CUDA is optional but significantly speeds up VoxCPM and OmniVoice inference

Installation

Easy Install (Lite)

  1. Download and extract KoKoFish-Lite
  2. Run KoKoFish.exe
  3. The launcher checks for Python 3.12, installs it if missing, then sets up the app
  4. Kokoro and Qwen models download automatically on first run (~700 MB total)

Full Offline Install

  1. Download and extract KoKoFish-Full
  2. Run KoKoFish.exe
  3. Python 3.12 is still required (launcher installs it if missing) — everything else is already included
The Full release includes PyTorch CPU wheels, Kokoro model, Qwen 0.5B model, and FFmpeg.
VoxCPM and OmniVoice weights download automatically the first time you switch to those engines.

Advanced / Developer Install

  1. Clone the repository:
git clone https://github.com/kl3mta3/KoKoFish.git
cd KoKoFish
  1. Create a virtual environment and install dependencies:
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
  1. Run the application:
python main.py

On first launch the app will automatically download anything missing:

  • FFmpeg (~100 MB, one-time)
  • Kokoro model files (~300 MB, one-time)
  • Qwen 0.5B model (~400 MB, one-time)
  • VoxCPM 0.5B checkpoints (~1 GB, one-time, only if you use that engine)
  • VoxCPM 2B checkpoints (~4 GB, one-time, only if you use that engine)
  • OmniVoice checkpoints (~2 GB, one-time, only if you use that engine)

AI Writing Tools (llama-cpp-python): The AI features (grammar check, tone rewriting, translation, tag generation, Prompt Lab) require llama-cpp-python. The app will prompt you to install it from Settings when you first use an AI feature. Pre-built CPU wheels install automatically with no compiler needed. If you want CUDA-accelerated LLM inference, enable CUDA in Settings first — the correct build will be selected automatically.


Switching Engines

Select an engine from the Settings tab. The app saves your selection and restarts automatically. Each engine has its own voice library:

  • VoxCPM 0.5B voices are stored in voices/voxcpm_05b/
  • VoxCPM 2B voices are stored in voices/voxcpm_2b/
  • OmniVoice voices are stored in voices/omnivoice/
  • Kokoro uses built-in preset voices — no voice library needed

CUDA Support

CUDA is optional and applies to the voice-cloning engines (VoxCPM 0.5B, VoxCPM 2B, OmniVoice). Enabling it requires a compatible NVIDIA GPU and will trigger an automatic installation of the CUDA-enabled PyTorch build.

To enable CUDA, go to Settings and toggle the CUDA option. The app will restart and use GPU acceleration for inference. An optional torch.compile toggle is also available for a 3–10× speed-up after a one-time ~10 min kernel compile.


Project Structure

KoKoFish/
  launcher.py          -- auto-setup and launch entry point
  main.py              -- application startup and splash screen
  ui.py                -- main window, tabs, and event handlers
  kokoro_engine.py     -- Kokoro ONNX engine with sentence-level streaming
  voxcpm_engine.py     -- VoxCPM 0.5B / 2B voice-cloning engine wrapper
  omnivoice_engine.py  -- OmniVoice (k2-fsa) voice-cloning engine wrapper
  stt_engine.py        -- Whisper speech-to-text engine
  tag_suggester.py     -- AI writing tools (grammar, tone, translate, tags)
  voice_manager.py     -- voice profile creation and management
  settings.py          -- persistent settings backed by settings.json
  script_engine.py     -- Script Lab: profile management, script parsing, AI tagging
  utils.py             -- file readers, audio export, FFmpeg utilities
  bin/                 -- bundled ffmpeg.exe
  scripts/
    profiles/          -- character profiles (JSON) for Script Lab
  models/              -- downloaded LLM and Kokoro model files
  voices/
    voxcpm_05b/        -- voice profiles for VoxCPM 0.5B
    voxcpm_2b/         -- voice profiles for VoxCPM 2B
    omnivoice/         -- voice profiles for OmniVoice
  packages/            -- pre-downloaded Python wheels (Full release only)

Acknowledgments


License

See LICENSE for details.

About

KoKoFish is a free, offline Audiobook Studio for Windows. Drop in any .txt, PDF, Word, or EPUB and turn it into a full audiobook with 54 built-in AI voices, voice cloning, and one-click export to MP3 or WAV, no internet, no API keys, no subscriptions.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages