From a0d94b140ebefc0ae010ec28ed74038517849c6a Mon Sep 17 00:00:00 2001 From: mARTin-B78 Date: Sun, 31 May 2026 17:58:28 +0200 Subject: [PATCH] Fix clone UX: sample text, live monitor, quality, STT picker, OGG accept 1. Sample text: expose initCloneSampleText as a window function and call it from nav.js runSideEffects when the clone section is activated, ensuring the textarea is always populated even if the IIFE ran before the element existed. 2. Better sample texts: all 8 languages rewritten to ~38 words / ~15 s, first-person, phonetically rich, proper Unicode diacritics. 3. Live mic monitor: a level-meter (18-bar) + scrolling oscilloscope canvas (ring-buffer, 300 px, colour-coded) added to the microphone card. "Check level" / "Stop monitor" buttons start/stop it independently; clicking Record starts it automatically. Uses raw mic constraints (no echo-cancel / AGC) for cleaner voice clone audio. Mic gain slider and dB readout included. 4. Recording quality: MediaRecorder now requests audioBitsPerSecond:256000 in both voice-clone.js and stt.js. 5. STT engine picker: Recognition engine +
@@ -47,10 +47,26 @@
+ +
0:00
+
+
+ Input level + -∞ dB +
+ + +
+ + + 1.00x +
+
Best peaks: −18 to −9 dB. Never red.
+