Repository navigation
Releases
v1.1.0
Magic-Voice AI v1.1.0 — Multilingual Conditioning, Paralinguistic Architecture & Engine Refinements
Magic-Voice AI v1.1.0 builds on v1.0.0 with major architectural improvements to the CosyVoice 3 conditioning pipeline, native paralinguistic token execution, end-to-end multilingual synthesis, speaker identity preservation, and UI state management.
New Implementations & Architecture Changes (vs. v1.0.0)
1. Native Paralinguistic Token Architecture & Prompt Conditioning
How It Works & Why It Was Built
CosyVoice 3's pretrained 0.5B LLM already contains 16 trained paralinguistic token IDs (151647–151662) for natural respiration, laughter, emphasis, sighs, and vocal textures, but standard text tokenizers interpret bracketed tags (like [laughter] or [breath]) as plain English words. Modifying the downloaded GGUF/tokenizer assets in place would break QVAC's registry SHA-256 and byte-size integrity checks.
- Non-Destructive Companion Model Directory (
ensureParalinguisticCompanionModelPath):- At runtime,
electron/core/tts/services/voice-engine.service.tsconstructs a lightweight companion model directory inos.tmpdir()/echo-voice-cache/cosyvoice3-paralinguistic-v1containing symlinks to the user's verified weights in~/.qvac/models/sets/...alongside an augmentedvocab.jsonandmerges.txt. - This maps 16 Unicode Private Use Area characters (
\uE000–\uE00FinCOSYVOICE_PARALINGUISTIC_TOKENS) directly to CosyVoice 3's trained token IDs (151647–151662), unlocking native[breath],<strong>/</strong>,[noise],[laughter],<laughter>/</laughter>,[cough],[clucking],[accent],[quick_breath],[hissing],[sigh],[vocalized-noise],[lipsmack], and[mn]while keeping the original model cache untouched.
- At runtime,
- Expressive Cue Translation (
processConversationalCues&ensureNaturalSentencePunctuation):- Converts user-facing script tags (
[smile],[laugh],[chuckle],[hmm],[sigh],[breath],[gasp],[whisper],[yell]/[loud],[raise]/[emphasis]) into their corresponding paralinguistic token sequences or segment tone directives so tags shape vocal delivery without ever being read aloud, while normalizing trailing punctuation for natural cadence boundaries.
- Converts user-facing script tags (
- Single-Instruction Conditioning Arbitration (
resolveCosyVoiceConditioning):- CosyVoice 3 enforces a strict one-instruction-per-synthesis rule (
assertSingleCosyvoiceControl), and passingemotion: "neutral"triggers the flat instruct path that drops reference voice speech tokens (promptSpeechTokens = 0). resolveCosyVoiceConditioning()unifies segment-level volume tags,speakingTone,emotion,pace,dialect(VALID_COSYVOICE_DIALECTS),customPrompt(normalizeCustomVoicePrompt), and target language into a single non-conflicting directive—omitting flat defaults when unconditioned so referencepromptSpeechTokensremain preserved (> 0) for true zero-shot prosody.
- CosyVoice 3 enforces a strict one-instruction-per-synthesis rule (
- Expanded Expressive Controls:
- Added the
Warmemotion and 8 structured speaking tones (Natural,Warm & Smiling,Conversational,Storyteller,Empathetic,Soft & Hushed,Projecting & Loud,Broadcast) acrosstts.interface.ts,voice.ts,qvac.ts, andDialogueRoundCard.tsx.
- Added the
2. End-to-End Multilingual Language Switching & Conditioning
Why Previous Language Switching Failed
Previously, switching the target language in the studio UI updated renderer state without consistently propagating language instructions, native reference transcripts, or localized catalog resolutions into the CosyVoice 3 inference worker—causing non-English prompts (such as French) to default back to English pronunciation.
- Target Language Normalization & Instruct Injection (
TARGET_LANGUAGE_MAP,normalizeTargetLanguage,applyLanguageToInstruct):- Maps language codes, English names, and native labels across English regional accents (
en,en-gb,en-in,en-au,en-af), French (fr), Spanish (es), German (de), Italian (it), Portuguese (pt), Japanese (ja), Chinese (zh), Korean (ko), Hindi (hi), Arabic (ar), Russian (ru), and Swahili (sw). - Injects the Chinese instruct prefix expected by CosyVoice 3 (e.g.,
请用法语,...) whenever a non-English target language is active.
- Maps language codes, English names, and native labels across English regional accents (
- Language-Matched Transcripts & Prompt Fallbacks (
resolveReferencePromptText,resolveLanguageMatchedReferenceAudio):- Resolves sidecar
.txttranscripts,REFERENCE_AUDIO_TRANSCRIPTS(fr,es,de,it,pt),REFERENCE_WAV_SIZE_TRANSCRIPTS, andDEFAULT_LANGUAGE_PROMPT_TEXTso zero-shot conditioning always pairs reference audio with an accurate native-language prompt transcript.
- Resolves sidecar
- Conversational Shorthand Normalization (
preprocessLanguageShorthand):- Expands informal abbreviations for the active target language (e.g., French chat shorthand like
cv->ça va ?,bjr->bonjour,slt->salut,stp->s'il te plaît) prior to tokenization so the model speaks natural words instead of spelling out individual letters.
- Expands informal abbreviations for the active target language (e.g., French chat shorthand like
- Catalog Folder & Alias Resolution (
src/lib/services/voiceLoader.ts):- Added
resolveLanguageFolder, alias matching inloadVoicesForLanguageandgetCachedVoices, and synchronized language selection viahandleSelectLanguageacrossTextToSpeechScreen.tsxandVoiceLanguageExplorerDialog.tsx.
- Added
3. Selected Speaker Preservation & Persistence Reliability
Root Cause & Fix
Selecting a speaker in the Voice Explorer previously fired both onSelectVoice and onSelectLanguage sequentially; the asynchronous loadVoicesForLanguage promise could resolve afterward and overwrite selectedVoiceId and rounds[i].voiceId with the language's default voice, or allow missing reference paths to fall back to the model's baked female voice.gguf speaker.
- Atomic Voice & Language Selection:
- Removed the redundant
onSelectLanguagecall fromVoiceListItem.tsxand updatedTextToSpeechScreen.tsxsoonSelectVoiceresolves the chosen voice acrossstate.voices,customVoices, andgetCachedVoices()and updatesselectedVoiceId,rounds, andlanguagein a single atomic state update. - Locked user-selected
referenceAudioSrcinvoice-engine.service.tsso zero-shot speaker identity is retained through synthesis.
- Removed the redundant
- Deterministic Dialogue Round Primary Keys:
- Updated
ConversationRepositoryService(electron/core/tts/services/conversation-repository.service.ts) to generate deterministic${data.id}-round-${idx}round IDs instead of reusing incoming IDs, preventing SQLite primary-key collisions when saving edited conversations.
- Updated
4. UI State Decoupling, Settings Streamlining & History Menu Fixes
- Local Component State Decoupling (
ttsStore.ts,useTextToSpeechState.ts,tts.ts):- Migrated transient sidebar UI state (
rightPanelTabandhistorySearch) out of the persisted global Jotai store into local React state inTextToSpeechScreen.tsx, avoiding unnecessary persistence writes and keeping the store focused strictly on generation settings and history data.
- Migrated transient sidebar UI state (
- Streamlined Settings Drawer (
SettingsDrawer.tsx):- Removed legacy
Stability (Temperature),Cloning Fidelity (Top-P), andEmotion Intensity (CFG Scale)sliders that no longer mapped cleanly onto CosyVoice 3's instruction-conditioned pipeline, simplifying the drawer around prompt presets, audio clarity, and target language controls.
- Removed legacy
- History Drawer Layout & Anchored Dropdown Fix (
HistoryDrawer.tsx):- Dropdown Anchor Fix: The hover toolbar previously toggled
hidden(display: none), causing RadixDropdownMenuto lose its trigger bounding box and render at(0, 0)in the top-left corner of the viewport. Switching toopacity-0 pointer-events-nonewithgroup-hover:opacity-100,focus-within:opacity-100, andhas-[[data-state=open]]:opacity-100alongsidealign="end" sideOffset={6}keeps the trigger measurable and anchors the menu cleanly beside the button. - Cleaner History Cards & Menu: Removed the
CosyVoice 3badge on history items and removed theSparklesicon from the Load Full Conversation menu option.
- Dropdown Anchor Fix: The hover toolbar previously toggled
5. Architecture Documentation & Project Showcase
- Added
docs/HOW_IT_WORKS.mdandARTICLE.mddocumenting the two-tier Electron topology, typed IPC bridge, 6-stage CosyVoice 3 synthesis pipeline, paralinguistic token translation, CAM++/S3Tok zero-shot cloning, Lava-SR 48kHz upsampling, and state architecture. - Updated
README.mdformatting with an embedded product showcase video and added rooticon.png.
Platform Installers
- macOS (Apple Silicon & Intel):
Magic-Voice AI-Mac-1.1.0-arm64-Installer.dmgMagic-Voice AI-Mac-1.1.0-x64-Installer.dmg
- Windows (64-bit NSIS Setup):
Magic-Voice AI-Windows-1.1.0-x64-Setup.exe
What's Changed
- feat: consolidate TTS engine to CosyVoice 3, redesign iOS-style Settngs, fix mic permissions, and add app icons by @DjibrilM in #1
- fix(models,macos): enforce concurrent model download verification gate and set native macOS Dock icon by @DjibrilM in #2
- build(release): configure multi-platform installers and unpack Prisma runtime for packaged apps by @DjibrilM in #3
- fix(voices): bundle and resolve voice assets in packaged builds by @DjibrilM in #4
- fix(runtime): resolve Bare worker spawn ENOTDIR in packaged builds by @DjibrilM in #5
- feat: improve CosyVoice 3 prompt engineering, local sidebar state, and technical docs by @DjibrilM in #7
- Fx packaged voices loading by @dj...
1.0.0
Magic-Voice AI v1.0.0 — Initial Release
Magic-Voice AI v1.0.0 is a 100% local, private, offline multi-speaker Text-to-Speech (TTS) and zero-shot voice cloning desktop studio powered by CosyVoice 3 and @qvac/sdk. All speech synthesis, voice design, speaker cloning, and 48kHz audio upsampling run locally on your machine with zero cloud dependencies, subscriptions, or external telemetry.
Highlights & Core Features
1. Local CosyVoice 3 Speech Synthesis Engine
- 0.5B Speech Backbone (
cosyvoice3-llm-q8_0): Autoregressive acoustic token generation conditioned on natural-language voice instructions and speaker prompts. - Uncompressed FP16 Flow-Matching Vocoder (
cosyvoice3-flow-fp16): Continuous ODE flow-matching acoustic generator for clean vocal detail, natural breath dynamics, and zero metallic artifacts. - S3Tok Speech Tokenizer (
cosyvoice3-s3tok-fp16): Encodes reference voice audio into discrete speech tokens for high-fidelity zero-shot cloning. - CAM++ Speaker Verification Encoder (
cosyvoice3-campplus-fp32): Extracts deep speaker timbre embeddings from short reference clips. - Lava-SR 48kHz Studio Enhancer (
lavasr-enhancer): Spectral bandwidth super-resolution upsampler that enhances native 24kHz synthesis to studio-grade 48kHz audio.
2. Instant Zero-Shot Voice Cloning & Custom Voices Studio
- Clone Voices from File or Microphone: Upload reference audio files (
WAV,MP3,M4A,AAC,FLAC) or record directly in the app with real-time microphone waveform visualization. - Curated Built-In Voice Catalog: Ships with ready-to-use multi-accent and character voice presets alongside your custom cloned voice library.
- Persistent Custom Voice Management: Search, filter, preview, and manage custom voices stored locally in SQLite via Prisma.
3. Multi-Speaker Conversational Script Studio
- Multi-Turn Dialogue Editor: Script multi-speaker conversations where each turn can be assigned a distinct speaker, emotion, speaking speed, and custom prompt instructions.
- Natural Acoustic Stitching: Automatically applies subtle crossfades, breath spacing, and room-tone padding between dialogue turns for cohesive multi-speaker conversations.
- Inline Expressive Reaction & Paralinguistic Tags:
[whisper]— Soft, intimate vocal delivery with gentle breath framing.[yell]/[loud]— Elevated dynamic projection and intensity.[raise]/[emphasis]— Natural pitch accentuation via native<strong>conditioning.[breath],[sigh],[gasp]— Sub-second respiration and vocal pause cues via native<breath>conditioning.[laughter]— Natural conversational laughter cues.
4. Interactive Waveform Player & History Library
- High-Precision Audio Scrubber: Built-in WaveSurfer waveform visualizer with play/pause, seek, duration tracking, and direct one-click audio export (
WAV/MP3). - Custom
echo-media://Streaming Protocol: Zero-copy local byte-range media streaming from disk for instant playback and scrubbing. - Conversation & Activity History: Browse, replay, reload, or delete past single-voice generations and multi-speaker dialogues.
5. Hardware Acceleration & Model Manager
- GPU (Metal) & CPU Compute Switch:
- GPU Acceleration (Default): Leverages Apple Silicon Metal compute shaders for fast local generation.
- CPU Mode: Runs inference on system CPU threads when GPU resources are reserved for other workloads.
- Automatically reloads active model handles when switching compute modes and persists your preference across restarts.
- Verified Concurrent Model Downloader:
- Download individual models or all required models concurrently (
~2.16 GBtotal) with live per-model progress, transfer speed, and cancel controls. - Strict byte-level disk verification ensures all model files and companion weight sets are fully intact before entering the synthesis studio.
- Download individual models or all required models concurrently (
6. Storage Management & Native Desktop Experience
- iOS-Inspired Storage Breakdown: Visual multi-segment storage bar tracking disk usage across installed voice models and saved audio outputs.
- Custom Media Destination Folder: Choose where generated audio files are saved, open outputs directly in Finder/Explorer, or clear cached models in one click.
- Live System Telemetry: Real-time CPU and RAM utilization monitor in the application sidebar.
Included Model Suite (v1.0.0)
| Model ID | Component | Format | Size | Purpose |
|---|---|---|---|---|
cosyvoice3-llm-q8_0 |
CosyVoice 3 Speech Backbone | Q8_0 GGUF (0.5B) | 973 MB | Autoregressive speech token generation & instruct conditioning |
cosyvoice3-flow-fp16 |
CosyVoice 3 Flow Matching Acoustic | FP16 GGUF | 639 MB | Continuous flow-matching ODE acoustic waveform synthesis |
cosyvoice3-s3tok-fp16 |
CosyVoice 3 S3Tok Tokenizer | FP16 GGUF | 496 MB | Reference speech tokenization for zero-shot voice cloning |
cosyvoice3-campplus-fp32 |
CosyVoice 3 CAM++ Speaker Encoder | FP32 GGUF | 27 MB | Speaker timbre & embedding extraction |
lavasr-enhancer |
Lava-SR 48kHz Audio Enhancer | FP16 GGUF | 28 MB | 24kHz to 48kHz spectral super-resolution upsampling |
Platform Installers
- macOS (Apple Silicon & Intel):
Magic-Voice AI-Mac-1.0.0-arm64-Installer.dmgMagic-Voice AI-Mac-1.0.0-x64-Installer.dmg
- Windows (64-bit NSIS Setup):
Magic-Voice AI-Windows-1.0.0-x64-Setup.exe
What's Changed
- feat: consolidate TTS engine to CosyVoice 3, redesign iOS-style Settngs, fix mic permissions, and add app icons by @DjibrilM in #1
- fix(models,macos): enforce concurrent model download verification gate and set native macOS Dock icon by @DjibrilM in #2
- build(release): configure multi-platform installers and unpack Prisma runtime for packaged apps by @DjibrilM in #3
- fix(voices): bundle and resolve voice assets in packaged builds by @DjibrilM in #4
- fix(runtime): resolve Bare worker spawn ENOTDIR in packaged builds by @DjibrilM in #5
- sync production with development by @DjibrilM in #6