wtsteward11/VoiceStudio

0

stars

930

commits

Python

primary language

May 19, 2026

updated

README

VoiceStudio

Professional voice cloning and audio production software built with WinUI 3, Python/Node backend. MCP integration planned (proof-of-concept: PDF unlocker).

πŸŽ™οΈ Quality Focus: State-of-the-art voice cloning with comprehensive quality metrics. Professional DAW-grade studio for voice synthesis, cloning, and audio production.

πŸš€ Migration Ready: All systems ready for migration from C:\VoiceStudio β†’ E:\VoiceStudio. See MIGRATION_STATUS.md and docs/governance/SYSTEM_READY_SUMMARY.md.

Architecture

[WinUI 3 App (C#)]
      |
      |  JSON over HTTP/WebSocket
      v
[Backend API (Python FastAPI)]
      |
      |  internal calls
      v
[Engine Layer (EngineProtocol)]
      |
      +---> [XTTS] [Chatterbox] [Tortoise] [Piper] [etc.]
      |
      v
[MCP Bridge Layer] ---> [PDF Unlock (implemented)]
                   ---> [Design Tokens, AI Engines (future)]

Note: Full MCP integration for design tokens and AI engines is planned for future releases. Currently, the MCP bridge supports PDF unlocking only. See FUTURE_WORK.md.

Project Structure

VoiceStudio/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ VoiceStudio.App/      # WinUI 3 frontend
β”‚   └── VoiceStudio.Core/     # Shared core library
β”œβ”€β”€ backend/                   # Python FastAPI backend
β”‚   β”œβ”€β”€ api/                  # FastAPI routes
β”‚   └── mcp_bridge/           # MCP integration
β”œβ”€β”€ app/
β”‚   └── core/                 # Engine system
β”œβ”€β”€ engines/                   # Engine manifests
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ user/                 # User documentation
β”‚   β”œβ”€β”€ api/                  # API documentation
β”‚   β”œβ”€β”€ developer/            # Developer documentation
β”‚   └── design/               # Architecture docs
└── installer/                 # Windows installer

Documentation

Complete documentation is available in the docs/ directory:

Features

  • πŸŽ™οΈ Voice Cloning Engines:
    • XTTS v2 (Coqui TTS) - High-quality multilingual voice cloning (14 languages) βœ… Integrated
    • Chatterbox TTS (Resemble AI) ⭐ RECOMMENDED - State-of-the-art quality, outperforms ElevenLabs (23 languages, emotion control) βœ… Integrated
    • Tortoise TTS πŸ”₯ HQ MODE - Ultra-realistic HQ mode for maximum quality (quality presets) βœ… Integrated
  • πŸ”Š Audio Playback:
    • Full audio I/O integration βœ… Complete
  • πŸ“š Complete Documentation:
    • User documentation, API reference, developer guides βœ… Complete
  • πŸ“¦ Windows Installer:
    • Professional installer with automatic dependency installation βœ… Complete
  • πŸ”„ Update System:
    • Automatic update checking and installation βœ… Complete
    • Timeline playback controls (Play/Pause/Stop/Resume) βœ… Complete
    • Profile preview functionality βœ… Complete
    • Voice synthesis playback βœ… Complete
    • Audio file persistence to projects βœ… Complete
    • Automatic saving after synthesis βœ… Complete
  • πŸ“Š Visual Components:
    • WaveformControl (Win2D) βœ… Complete
    • SpectrogramControl (Win2D) βœ… Complete
    • Timeline clip waveforms βœ… Complete
    • Timeline spectrogram visualization βœ… Complete
    • Zoom controls βœ… Complete
    • AnalyzerView basic tabs βœ… Complete
    • NAudio-based high-quality playback βœ… Complete
  • πŸ“Š Quality Metrics: Comprehensive quality assessment system βœ… Complete
    • MOS Score (1.0-5.0) - Audio quality estimation
    • Voice Similarity (0.0-1.0) - Reference vs generated comparison
    • Naturalness (0.0-1.0) - Prosody and speech-like characteristics
    • SNR (dB) - Signal-to-noise ratio
    • Artifact Detection - Clicks, pops, distortion detection
    • Quality Enhancement - Automatic denoising, normalization, artifact removal
    • Voice Profile Matching - F0, formants, MFCC analysis
  • πŸ§ͺ Comprehensive Test Suite: Production-ready testing infrastructure βœ… Complete
    • 264 test files with ~94% code coverage (exceeds 80% target)
    • ~2,000+ test cases across the entire suite
    • 100% backend API route coverage (103 route test files covering all 87+ routes)
    • 100% CLI coverage (all CLI utilities tested)
    • Complete optimized module coverage (LRU caches, batch processing, connection pooling, etc.)
    • 487+ engine test cases across all voice cloning engines
    • See Testing Guide for complete details
  • Modular Panel System: Extensible panel architecture supporting 100+ panels
  • MVVM Pattern: Clean separation of concerns
  • Design System: Comprehensive design tokens and styles
  • MCP Integration: PDF unlock support implemented; design tokens and AI engines planned for future
  • Backend API: REST/WebSocket communication

Documentation

πŸš€ Quick Start

πŸ”§ Engine System

πŸ›‘οΈ Migration & Guardrails

πŸ” Panel Discovery Tools (Missing Panels?)

πŸš€ Migration Execution

βš›οΈ React/Electron Conversion

🎯 Cursor Integration (NEW)

πŸ“‹ Core Specifications

πŸ—οΈ Architecture

🎨 UI & Design

πŸ€– AI Integration

πŸ“… Roadmap & Planning

βœ… Implementation Status

πŸ› οΈ Advanced Features

πŸ“– Legacy Documentation

Development Status

βœ… Architecture defined βœ… Core library structure created βœ… Panel system implemented βœ… Design tokens and styles βœ… Panel views with MVVM βœ… MainWindow shell complete - Full skeleton with nav rail, panel hosts, command deck, status bar βœ… All 6 panels implemented - ProfilesView, TimelineView, EffectsMixerView, AnalyzerView, MacroView, DiagnosticsView βœ… All ViewModels created - All implement IPanelView interface βœ… Panel content wired - MainWindow assigns panels to PanelHosts βœ… Voice Cloning Engines - XTTS v2, Chatterbox TTS (state-of-the-art), Tortoise TTS (ultra-realistic HQ mode) βœ… Quality Metrics Framework - Comprehensive quality assessment (MOS score, similarity, naturalness, SNR, artifact detection) βœ… Quality Metrics Integration - All engines support enhance_quality and calculate_quality parameters βœ… Quality Testing Suite - Comprehensive test framework (test_quality_metrics.py with 9 test functions) βœ… Backend API - FastAPI with voice cloning endpoints + detailed quality metrics (QualityMetrics model) βœ… UI-Backend Integration - IBackendClient (C#) + ProfilesView/DiagnosticsView wired to backend βœ… Engine Manifests - All engines have manifests with quality capabilities documented βœ… Engine Registry - Complete documentation (engines/README.md) with quality features and standards βœ… Audio Utilities - 8 functions ported with quality enhancements (core + voice cloning quality functions) βœ… Panel Discovery - 8 panels discovered and registered (voice cloning panels identified) βœ… Quality Testing Suite - Comprehensive test framework (test_quality_metrics.py with 9 test functions) βœ… Engine Benchmark Script - Quality comparison tool (app/cli/benchmark_engines.py) for measuring engine performance βœ… TimelineView Audio Playback - Play/Pause/Stop controls integrated with IAudioPlayerService βœ… VoiceSynthesisView - Complete UI with quality metrics display and audio playback βœ… Quality-Based Engine Selection - Intelligent engine routing based on quality requirements βœ… Profile Preview - Quick synthesis and playback in ProfilesView βœ… Comprehensive Status - See COMPREHENSIVE_STATUS_SUMMARY.md for complete status ⏳ MCP bridge implementation (pending) ⏳ Full workspace migration (pending)

Troubleshooting WinUI XAML Compiler Errors

VoiceStudio uses WinUI 3 with Windows App SDK 1.8. The XAML compiler can sometimes fail silently with exit code 1 and no error output.

For comprehensive troubleshooting, see the XAML Compiler Playbook - a consolidated runbook with decision trees, copy-paste commands, and emergency recovery procedures.

Use the following workflow for quick diagnosis:

Quick Diagnostic Build

For silent XAML compiler failures (exit code 1, no output), use:

  1. Run reproducible single-threaded diagnostic build:

    .\scripts\build-with-binlog.ps1
    
  2. Analyze the binlog:

    .\scripts\analyze-binlog.ps1 -BinlogPath .buildlogs\build_diagnostic_*.binlog
    
  3. If the issue persists, use binary search to isolate the problematic XAML file:

    .\scripts\xaml-binary-search.ps1
    

Common XAML Compiler Issues

SymptomLikely CauseSolution
Exit code 1, no output.jsonAttached property on ContentPresenterRemove TextElement.* attached properties
Exit code 1 for nested ViewsXAML in Views/subfolder/Flatten to Views/ root
Missing output.json intermittentlyFile lock contentionBuild single-threaded with -m:1
WMC9999 in-process errorTask-based compiler issueUse UseXamlCompilerExecutable=true

Key Resources

Diagnostic Scripts

ScriptPurpose
scripts/build-with-binlog.ps1Clean single-threaded build with binlog capture
scripts/analyze-binlog.ps1Extract XamlCompiler invocations from binlog
scripts/xaml-binary-search.ps1Binary search to isolate problematic XAML
scripts/build/diagnose_xaml_compiler.ps1Comprehensive XAML diagnostics
tools/xaml-compiler-wrapper.cmdWrapper handling false-positive exit code 1

License

[To be determined]

Contributors

wtsteward11

930 commits

wtsteward11/VoiceStudio

0

stars

930

commits

Python

primary language

May 19, 2026

updated

README

VoiceStudio

Professional voice cloning and audio production software built with WinUI 3, Python/Node backend. MCP integration planned (proof-of-concept: PDF unlocker).

πŸŽ™οΈ Quality Focus: State-of-the-art voice cloning with comprehensive quality metrics. Professional DAW-grade studio for voice synthesis, cloning, and audio production.

πŸš€ Migration Ready: All systems ready for migration from C:\VoiceStudio β†’ E:\VoiceStudio. See MIGRATION_STATUS.md and docs/governance/SYSTEM_READY_SUMMARY.md.

Architecture

[WinUI 3 App (C#)]
      |
      |  JSON over HTTP/WebSocket
      v
[Backend API (Python FastAPI)]
      |
      |  internal calls
      v
[Engine Layer (EngineProtocol)]
      |
      +---> [XTTS] [Chatterbox] [Tortoise] [Piper] [etc.]
      |
      v
[MCP Bridge Layer] ---> [PDF Unlock (implemented)]
                   ---> [Design Tokens, AI Engines (future)]

Note: Full MCP integration for design tokens and AI engines is planned for future releases. Currently, the MCP bridge supports PDF unlocking only. See FUTURE_WORK.md.

Project Structure

VoiceStudio/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ VoiceStudio.App/      # WinUI 3 frontend
β”‚   └── VoiceStudio.Core/     # Shared core library
β”œβ”€β”€ backend/                   # Python FastAPI backend
β”‚   β”œβ”€β”€ api/                  # FastAPI routes
β”‚   └── mcp_bridge/           # MCP integration
β”œβ”€β”€ app/
β”‚   └── core/                 # Engine system
β”œβ”€β”€ engines/                   # Engine manifests
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ user/                 # User documentation
β”‚   β”œβ”€β”€ api/                  # API documentation
β”‚   β”œβ”€β”€ developer/            # Developer documentation
β”‚   └── design/               # Architecture docs
└── installer/                 # Windows installer

Documentation

Complete documentation is available in the docs/ directory:

Features

  • πŸŽ™οΈ Voice Cloning Engines:
    • XTTS v2 (Coqui TTS) - High-quality multilingual voice cloning (14 languages) βœ… Integrated
    • Chatterbox TTS (Resemble AI) ⭐ RECOMMENDED - State-of-the-art quality, outperforms ElevenLabs (23 languages, emotion control) βœ… Integrated
    • Tortoise TTS πŸ”₯ HQ MODE - Ultra-realistic HQ mode for maximum quality (quality presets) βœ… Integrated
  • πŸ”Š Audio Playback:
    • Full audio I/O integration βœ… Complete
  • πŸ“š Complete Documentation:
    • User documentation, API reference, developer guides βœ… Complete
  • πŸ“¦ Windows Installer:
    • Professional installer with automatic dependency installation βœ… Complete
  • πŸ”„ Update System:
    • Automatic update checking and installation βœ… Complete
    • Timeline playback controls (Play/Pause/Stop/Resume) βœ… Complete
    • Profile preview functionality βœ… Complete
    • Voice synthesis playback βœ… Complete
    • Audio file persistence to projects βœ… Complete
    • Automatic saving after synthesis βœ… Complete
  • πŸ“Š Visual Components:
    • WaveformControl (Win2D) βœ… Complete
    • SpectrogramControl (Win2D) βœ… Complete
    • Timeline clip waveforms βœ… Complete
    • Timeline spectrogram visualization βœ… Complete
    • Zoom controls βœ… Complete
    • AnalyzerView basic tabs βœ… Complete
    • NAudio-based high-quality playback βœ… Complete
  • πŸ“Š Quality Metrics: Comprehensive quality assessment system βœ… Complete
    • MOS Score (1.0-5.0) - Audio quality estimation
    • Voice Similarity (0.0-1.0) - Reference vs generated comparison
    • Naturalness (0.0-1.0) - Prosody and speech-like characteristics
    • SNR (dB) - Signal-to-noise ratio
    • Artifact Detection - Clicks, pops, distortion detection
    • Quality Enhancement - Automatic denoising, normalization, artifact removal
    • Voice Profile Matching - F0, formants, MFCC analysis
  • πŸ§ͺ Comprehensive Test Suite: Production-ready testing infrastructure βœ… Complete
    • 264 test files with ~94% code coverage (exceeds 80% target)
    • ~2,000+ test cases across the entire suite
    • 100% backend API route coverage (103 route test files covering all 87+ routes)
    • 100% CLI coverage (all CLI utilities tested)
    • Complete optimized module coverage (LRU caches, batch processing, connection pooling, etc.)
    • 487+ engine test cases across all voice cloning engines
    • See Testing Guide for complete details
  • Modular Panel System: Extensible panel architecture supporting 100+ panels
  • MVVM Pattern: Clean separation of concerns
  • Design System: Comprehensive design tokens and styles
  • MCP Integration: PDF unlock support implemented; design tokens and AI engines planned for future
  • Backend API: REST/WebSocket communication

Documentation

πŸš€ Quick Start

πŸ”§ Engine System

πŸ›‘οΈ Migration & Guardrails

πŸ” Panel Discovery Tools (Missing Panels?)

πŸš€ Migration Execution

βš›οΈ React/Electron Conversion

🎯 Cursor Integration (NEW)

πŸ“‹ Core Specifications

πŸ—οΈ Architecture

🎨 UI & Design

πŸ€– AI Integration

πŸ“… Roadmap & Planning

βœ… Implementation Status

πŸ› οΈ Advanced Features

πŸ“– Legacy Documentation

Development Status

βœ… Architecture defined βœ… Core library structure created βœ… Panel system implemented βœ… Design tokens and styles βœ… Panel views with MVVM βœ… MainWindow shell complete - Full skeleton with nav rail, panel hosts, command deck, status bar βœ… All 6 panels implemented - ProfilesView, TimelineView, EffectsMixerView, AnalyzerView, MacroView, DiagnosticsView βœ… All ViewModels created - All implement IPanelView interface βœ… Panel content wired - MainWindow assigns panels to PanelHosts βœ… Voice Cloning Engines - XTTS v2, Chatterbox TTS (state-of-the-art), Tortoise TTS (ultra-realistic HQ mode) βœ… Quality Metrics Framework - Comprehensive quality assessment (MOS score, similarity, naturalness, SNR, artifact detection) βœ… Quality Metrics Integration - All engines support enhance_quality and calculate_quality parameters βœ… Quality Testing Suite - Comprehensive test framework (test_quality_metrics.py with 9 test functions) βœ… Backend API - FastAPI with voice cloning endpoints + detailed quality metrics (QualityMetrics model) βœ… UI-Backend Integration - IBackendClient (C#) + ProfilesView/DiagnosticsView wired to backend βœ… Engine Manifests - All engines have manifests with quality capabilities documented βœ… Engine Registry - Complete documentation (engines/README.md) with quality features and standards βœ… Audio Utilities - 8 functions ported with quality enhancements (core + voice cloning quality functions) βœ… Panel Discovery - 8 panels discovered and registered (voice cloning panels identified) βœ… Quality Testing Suite - Comprehensive test framework (test_quality_metrics.py with 9 test functions) βœ… Engine Benchmark Script - Quality comparison tool (app/cli/benchmark_engines.py) for measuring engine performance βœ… TimelineView Audio Playback - Play/Pause/Stop controls integrated with IAudioPlayerService βœ… VoiceSynthesisView - Complete UI with quality metrics display and audio playback βœ… Quality-Based Engine Selection - Intelligent engine routing based on quality requirements βœ… Profile Preview - Quick synthesis and playback in ProfilesView βœ… Comprehensive Status - See COMPREHENSIVE_STATUS_SUMMARY.md for complete status ⏳ MCP bridge implementation (pending) ⏳ Full workspace migration (pending)

Troubleshooting WinUI XAML Compiler Errors

VoiceStudio uses WinUI 3 with Windows App SDK 1.8. The XAML compiler can sometimes fail silently with exit code 1 and no error output.

For comprehensive troubleshooting, see the XAML Compiler Playbook - a consolidated runbook with decision trees, copy-paste commands, and emergency recovery procedures.

Use the following workflow for quick diagnosis:

Quick Diagnostic Build

For silent XAML compiler failures (exit code 1, no output), use:

  1. Run reproducible single-threaded diagnostic build:

    .\scripts\build-with-binlog.ps1
    
  2. Analyze the binlog:

    .\scripts\analyze-binlog.ps1 -BinlogPath .buildlogs\build_diagnostic_*.binlog
    
  3. If the issue persists, use binary search to isolate the problematic XAML file:

    .\scripts\xaml-binary-search.ps1
    

Common XAML Compiler Issues

SymptomLikely CauseSolution
Exit code 1, no output.jsonAttached property on ContentPresenterRemove TextElement.* attached properties
Exit code 1 for nested ViewsXAML in Views/subfolder/Flatten to Views/ root
Missing output.json intermittentlyFile lock contentionBuild single-threaded with -m:1
WMC9999 in-process errorTask-based compiler issueUse UseXamlCompilerExecutable=true

Key Resources

Diagnostic Scripts

ScriptPurpose
scripts/build-with-binlog.ps1Clean single-threaded build with binlog capture
scripts/analyze-binlog.ps1Extract XamlCompiler invocations from binlog
scripts/xaml-binary-search.ps1Binary search to isolate problematic XAML
scripts/build/diagnose_xaml_compiler.ps1Comprehensive XAML diagnostics
tools/xaml-compiler-wrapper.cmdWrapper handling false-positive exit code 1

License

[To be determined]

Contributors

wtsteward11

930 commits

Languages

Python

63.5%

C#

34.1%

PowerShell

2.1%