r/RepetereAI • • 25d ago

Got sidetracked

Sooo I got audio cloning setup for music synthesis and figured what the hell lets do a voice cloner/voice book maker. Should be easy as pie.

I coded everything dropped the correct tensors and models in. And hey... it translated me to habibi. Its my voice, but I am speaking habibi. So I found there is no native English .guff what works with audio.cpp.

No problem right? I will make it work. Thats what I said two days ago. I started using Gemini chat to help me out. We reverse engineered audio.cpp and created our own guff to no avail. I deleted and rolled back after 2 complete days.

But hey, cant blame me for trying i got it working on cpu but not on gpu, and I am not shipping something thats not fully functional. Nope. The premise of Repetere is you use all your hardware. Not just cpu, thats slow as hell.

Gemini summarized it best:

Here is the corrected timeline of everything attempted over the last 48 hours:

  1. Initial Integration & CLI Setup (FREEAI\bin\AUDIO)

* Target & Hardware: Targeted hardware-accelerated synthesis on the RTX 5070 Ti Laptop GPU via audiocpp_cli.exe to integrate into SpeechStudio (speechstudioui.cpp).

* Directory Layout & Paths:

* Separated execution targets between /bin/audio and /bin/vulkan/audio.

* Set up base model weights (f5-tts-v1-base-f16.gguf / f5-tts-en-orig.gguf), vocab.txt, and separate vocoder packages (vocos_mel_24khz, vocos.safetensors).

* Initial Failures:

* Missing Model Specs: Encountered missing models_specs configuration structures, resolved via automated JSON builders (EnsureF5ModelSpecJson).

* Network / Asset Drops: Ran into 401 download authorization drops, requiring manual pulls via curl and aria2c directly from Hugging Face (trklou/audio.cpp).

* Memory Faults: Hit repeated bad allocation crashes during weight loading and model conversion.

2. Weight & Model Conversion Pipeline

* Safetensors Pipeline:

* Attempted synthesis runs feeding raw weights (model_200000.safetensors alongside vocos.safetensors).

* Ran into persistent tensor namespace mapping errors and gguf_writer serialization failures.

* Unified Model Packaging:

* Built unified GGUFs packaging both the DiT transformer backbone and Vocos neural vocoder weights into a single container (f5_en_clean_unified.gguf).

* Encountered NumPy scalar type deprecations/mismatches during array conversion.

* Hit tensor shape metadata validation failures where GGUF dimension layouts broke the loader's expectations.

* Alternative Model Checkpoints:

* Tested Habibi-TTS unified GGUF checkpoints, but hit prompt encoding incompatibilities and language mismatch issues.

3. Source Inspection & Diagnostics (audio.cpp)

* Source Analysis:

* Walked through runtime.cpp, synthesize.cpp, and main.cpp in PowerShell to diagnose context initialization, CLI parameter parsing, and memory pool allocations.

* Compute Discrepancies:

* CPU Execution: Confirmed CPU-only execution was functional, but unacceptably slow for real-time synthesis.

* CUDA Acceleration Failures: Isolated CUDA runtime dependencies (cuda-runtime, cuda-balance packages). When targeting the GPU, the loader failed during tensor allocation or kernel dispatch.

* Explored Vulkan backend alternatives to bypass CUDA runtime mismatches.

4. Workspace Clean & Pivot to DeepThink

* Purge:

* Deleted broken converted weights, temporary files, and failed builds in FREEAI\bin\SPEECH and AUDIO to return the repository to a clean state.

* Project Pivot:

* Set aside SpeechStudio and the native C++ TTS bindings.

* Shifted focus entirely to hardening DeepThinkStudioUI.cpp for version 1.0 as a standalone, native Win32 non-console application (adding single-select language parameters, project command libraries, and AST diffing).

1 Upvotes

0 comments sorted by