# Feature briefs that depend on the voice model's control interface (SesVer / VoxCPM2) Used by section 7 of SKILL.md. 1. Before briefing a feature that changes how text is voiced (per-span emotion, inline effects, styles), read the model's documented control interface and write a short dated research note in the notes vault project folder; put its path in the brief. VoxCPM2: the style/emotion instruction is a parenthesised prefix `(instruction)text` valid only at the START of the text (official demo strips parentheses inside it); inline non-verbal tags exist in square brackets (`[laughing]`, `[sigh]`, `[Uhm]`, `[Surprise-wa]`), untested in Turkish. So "emotion on one sentence/word" means split into segments, generate each with its own prefix, join; reuse the queue's split/merge module and block random voice for multi-segment output. 2. Make the first phase PLAN + real-model experiment (no repo writes): mid-text instruction, seam quality at emotion changes, smallest meaningful unit (word vs sentence), inline tags; WAVs to a folder the user can listen to. 3. The dev Mac has 16 GB: when two workers may load the model (e.g. a queue real-model test and an experiment), serialize the model runs and tell each worker to check for ANY Python process holding the model (`ps aux | grep -i python` + RSS; scratch experiment scripts slip past an app-file-name grep) before loading; details in `references/batch-queue-features.md`. 4. Gradio `Textbox` exposes no selection range or highlighting; selection-driven UI is a custom component/JS question for the worker, not a PM design decision. Note the overlap with any other branch touching the same text boxes. 5. VoxCPM2 takes no language tag: it reads the text in whatever language it is written. There is no "generation language" selector by design; when users look for one, the fix is a one-line hint near the text box ("Hangi dilde yazarsanız o dilde okur."), not a selector or a long banner. Only Turkish has been verified with real generation; say so when asked about other languages. ## Measured in Turkish (VoxCPM2, recorded preset voice, phase-1 experiment) Do not re-run these; brief only the open items. The worker cannot hear; a blind model listener (Gemini) scored the clips but disagreed with the user (it gave whisper 4/5, the user rejected it), so a model listener is a pre-filter only and never decides scope. The user's ear is the final judge: send the listening pack (WAV -> m4a for Telegram, MEDIA lines) with one "what to hear" line per clip and ask concrete yes/no questions. Keep the WAV originals in `Görseller/`; scratch m4a copies get pruned, regenerate them when the user asks to hear the pack again. User's listening verdict (final, overrides the measured verdicts below): shout GOOD, excited OK, word emphasis with commas around the word OK (chosen over the separate-segment method), whisper BAD, sad BAD, laugh `[laughing]` and sigh `[sigh]` VERY BAD (never offer them). Untested by ear: calm, energetic, joyful, serious per sentence. - A parenthesised instruction or a tag-like phrase in the MIDDLE of the text is read aloud (also when continuing from the previous segment's audio). Per-span expression = split, neutral spans in continuation mode, marked spans in controlled-clone mode, then join. - Whisper: `(whispering)` works (one seed only so far). - Shout: only a strong description works (`(yelling in panic, very loud and urgent)`); `(shouting)` alone does not. Pitch rises so far the voice may sound like another speaker. It is NOT reliable: of 4 experiment shouts only one really shouted (median pitch 353 Hz vs ~175-197 Hz for the other three and ~185-194 Hz neutral), and that one went into the listening pack; the first product-path render with the same prefix gave 211 Hz. Excited likewise: approved clip 264 Hz, product render 177 Hz (neutral 163 Hz). - Single-word emphasis: no fully natural method among 6 (separate segment = strong but disjointed; commas around the word = mild with a pause; caps, `!`, prefix description = no effect). The user approved the comma method by ear, so it ships as the Emphasis option (single pass, no segment split). - Emotions per sentence: Energetic/Excited/Joyful are indistinguishable from each other; Serious weak; Sad heard as serious; Calm wrong. Show fewer, merged choices. Clone segments can garble their first word. - `[laughing]`, `[sigh]` are not read aloud and add something; other bracket tags unmeasured -> hidden until measured. - Cost: each segment ~2 min under memory pressure regardless of length; 5 sentences as 5 segments took 4.4x a single pass. Any UI time estimate (mockups included) must come from this measurement, not a guess; check drafts for invented numbers before showing them. - Seams: equalising segment loudness + shortening the inter-sentence gap (0.45 -> 0.25 s) removed most audible joins, no model needed. ## Best-of-N is not a verdict: measure the success rate - A listening pack must say how many attempts each clip was picked from ("1 of 4 shouted") and how often the effect appears. If the pack shows the best take, the user approves a quality the shipped single-pass path will rarely produce. - Before shipping an expression feature, render the product path itself several times (≥6 seeds per expression) and measure against the approved clip with `scripts/measure_speech.py` (per-sentence RMS dB, median pitch, Whisper words): a working shout is roughly ≥1.5x the same voice's neutral pitch, excited ≥1.3x, first word transcribed correctly. Target ≥80% of renders passing; if no method reaches it, stop and give the user options (generate N internally and keep the strongest, different prefix, mode) instead of shipping. - When the user says "you test it" for audio, say plainly that you cannot hear, report these numbers against the approved clip, and do not call it good on a model listener's score. ## Inline expression feature: The user's requirement set - Interaction: The user selects a sentence OR a single word with the mouse and a small menu opens right above the selection, like WhatsApp's message-reaction bar; the marked span stays visibly highlighted in the text, can be changed/removed, and works with the keyboard and in Arabic RTL. - Expressions the menu must cover (each shown only if the experiment proves it works in Turkish AND the user approves it by ear): the existing emotions, whisper, shout, emphasis on one word, non-verbal tags (laugh, sigh, ...). After the listening round the menu is only Shout, Excited, Emphasis (commas); whisper and sad wait for a second experiment round the user postponed. Chosen UI: the WhatsApp-style reaction bubble above the selection (draft A) alone, no separate marks list. Whole-text emotion selection stays as it is. - Phase-1 deliverables before any app code: experiment table (method, WAV path, works / partly / not, why) with separate verdicts for whisper, shout and word emphasis (at least 3 emphasis methods); a listening pack of 6-10 short clips named in plain Turkish with one line on what to hear; 2-3 menu drafts as PNG (at least one Arabic); plan + version scope. Earlier experiment WAVs in `Görseller//duygu-deney/` are inputs to evaluate, not to redo blindly.