Skip to content

FormREC 0.11.0: a natural built-in voice (Kokoro) with voice-over, the Studio inspector, and the Form shell finished - #12

Merged
nodemode-ai merged 52 commits into
mainfrom
feat/kokoro-voice-0.11.0
Dec 2, 2026
Merged

nodemode-ai merged 52 commits into
mainfrom
feat/kokoro-voice-0.11.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

FormREC 0.11.0: a natural built-in voice (Kokoro) with voice-over, the Studio inspector, and the Form shell finished

Summary

  • Built-in voice: Kokoro. It is the same engine FormCut and FormMorpheus use, and it replaces the Flite and eSpeak voices the owner called robotic.
    • kokoro-onnx 0.6.1 runs in a Python environment of FormREC's own, kept in the data folder under voice/runtime. The person sets it up once, from Settings, Voice.
    • The Kokoro-82M model files kokoro-v1.0.onnx and voices-v1.0.bin come from the kokoro-onnx GitHub release model-files-v1.1. They are saved to voice/models and kept only when each file's pinned SHA-256 and size match. Setup shows its progress, can be cancelled, and resumes an interrupted download.
    • There are 54 voices. The default is af_heart, speed 1, and the speed range is 0.5 to 2, as in both reference apps.
    • The window says when a computer cannot run the voice (32-bit, Windows on Arm).
  • Licence. FormREC is Apache-2.0, and nothing GPL ships with it.
    • kokoro-onnx pulls in phonemizer and eSpeak NG, which are GPL-3.0-or-later. The person's own Python installs them into the data folder, and FormREC runs them as a separate program. It never bundles, imports or links them, which is the same separation FormCut and FormMorpheus use.
    • NOTICE.md lists the model and the runtime. No new npm dependency.
  • Voice-over. The player's Voice-over tab makes one line per chapter, from the chapter's say text or the Script mode paragraphs. Lines can also come from notes, or be added at a chosen time.
    • Each line can be listened to, edited and remade on its own. Every line shows its state: not made, changed, or running past its chapter.
    • Voice and speed can be set for the whole app, for one recording, or for one line.
    • The lines play in step in the player and the editor. They are mixed into every export and into the share renditions. The recording is ducked under each line (level 0.25, 0.15 s down, 0.4 s up), and Even loudness levels each line to -16 LUFS.
    • Captions from the lines are at /api/voiceover/<id>/captions.vtt.
    • The Studio has a Voice tab.
    • New MCP tools: formrec_list_voices and formrec_voiceover, which mirror FormMorpheus's list_voices and add_voice (124 tools in all).
    • Replace with speech in the editor and the AI avatar's voice-over now use Kokoro. FORMREC_TTS remains as the override.
  • Demos. Every narration is regenerated with Kokoro at -16 LUFS:
    • podcast-episode: af_heart and am_michael;
    • studio-guest: af_heart and af_bella;
    • the self tour has been recorded again on the new Studio. It now speaks its captions with af_heart.
  • Studio, Screen, Camera and Audio only. The page scrolled about 5100 px. Its tools are now in an inspector with an icon rail, showing one group at a time and remembering the last tab per page.
    • Source, camera, microphone and Record are on screen at 1440x900 and at 1280x800.
    • The stage shows the preview. Before a source is chosen, it shows the first steps and Record now.
    • Each page has its own stage view: Screen shows the preview's size and frame rate, Camera shows framing guides, and Audio only shows a large waveform.
  • Form shell. The top bar ends with the agent (robot) button and FormPortal's gear, in FormPortal's style.
    • Preferences is FormVis's floating cv-prefs dialog. A rail of sections sits at its left, a wire runs to the active section, and one section shows at a time.
    • The agent dock works from the button, from View, Agent Dock, from Cmd/Ctrl+J and from Preferences, Agents, Show the agent dock. Its state is applied before the first paint.
    • Outside agents' changes now ask first through an MCP consent bridge. The default is Ask, and with no window open those changes are refused.
    • The macOS global menus are built from the same menu list. On macOS the content starts 78 px right of the traffic lights, and the inset is dropped in full screen.
  • Naming. The display name is FormREC wherever a person reads it. API names, ids and headers keep their old spelling.
  • The release commit chore(release): 0.11.0 is last. It moves every version site and adds the CHANGELOG entry.

Tests

  • npm run check, npm run build, npm run notices:check and npm run agents:check (124 tools) pass.
  • Each vitest file below was run on its own, under a build lock. All passed:
    • voice and edit: edit-api, ai-voice, renditions-edit, edit-exportwire, edit-ops, share-export, avatar-export, edit-web, edit-e2e;
    • MCP, agents and notices: mcp-tools, mcp-new-tools-audit, mcp-http-server, agents, notices, version-sites;
    • demos and player: demos, player-controls-e2e;
    • Studio: studio-e2e, studio-proof-e2e, voice-master-e2e, e2e-studio, studio-slides-e2e, live-e2e, live-link-e2e, transcripts-whisper-e2e;
    • shell and desktop: desktop-native-panels, the shell's browser tests, the 25 apps-* files, extension-manifest, extension-e2e.
  • The full suite was not run.
  • In this sandbox, the browser tests ran with PLAYWRIGHT_BROWSERS_PATH pointed at a folder that links Playwright's expected browser build to the installed one. This only works around the sandbox; CI is unaffected and installs its own browsers.
  • A verify pass built HEAD in headless Chrome at 4x CPU throttling, at 1440x900 and 1280x800, in dark and light themes, with a stand-in macOS bridge. Every line of the Form shell standard passed, with a layout shift of 0 on:
    • load;
    • opening Preferences and switching sections;
    • switching the inspector's tabs;
    • preview start;
    • dock toggle.
  • Voice was checked by measurement only, since there is no audio out here:
    • lines start within 0.1 s of their captions;
    • loudness is -16 LUFS, with no clipping;
    • exports carry the lines with the bed 12 dB lower under them.
  • Not run:
    • macOS and Windows: the traffic lights, the native menu bar, and the built-in voice's Python paths on those systems;
    • the Android and iOS builds.

… into the data folder, with voice-over lines per chapter and Replace with speech on it
…ile, NOTICE rows for the model and its runtime, and scripts/fetch-kokoro.mjs
…, and Preferences as the floating cv-prefs dialog with the wire, one section at a time
…ze and frame rate, camera framing guides, and a scrolling waveform with a large peak readout
…stead of Flite

scripts/demo-voice.mjs speaks each line through src/features/voiceover/kokoro.ts with af_heart, the default voice of FormCut and FormMorpheus (guests am_michael and af_bella), and sets each speaking track to -16 LUFS with peaks under -1.5 dBTP. It sets the voice up in the app's data folder on first run. make-podcast-demo.mjs no longer deletes the demo's README.md and CREDITS.md. Checked: both scripts run here with the cached model, and tests/demos.test.ts and tests/mcp.test.ts pass. 2026-12-01 EST.
…oro at -16 LUFS

podcast-episode was remade by its script: the same eight lines, now 37.3 s, and the chapters and captions follow the new line lengths. In studio-guest the two mic tracks were spoken again in place, at the take's offsets and lengths. The Ada answers mark moved from 8.828 to 9.300 s so it falls after Mara's line. Each new mic track was checked with ffprobe and ffmpeg: Opus mono 48 kHz, -16.0 to -16.4 LUFS, -2.9 to -3.5 dBTP, no clipped samples, and speech spans that match the captions. 2026-12-01 EST.
…one group at a time, and a stage that shows the preview or its main actions
…'s More menu opens Agents, and the macOS title bar drags the window
…page's row, a 78 px inset set before the first paint and dropped in full screen
…oMic, so its waveform also runs under Voice master
…ed into exports and share renditions with the recording ducked under each line
…es from notes, the lines spoken in step in the player and the editor, and Settings, Voice
…ce, flite and espeak only through FORMREC_TTS, and the window says so
…a preview, and Replace with speech points to Settings, Voice
…mrec_voiceover (npm run agents:sync, 124 tools)
… once placed, so the rail button is the only match
…he person's Allow once, Always or Deny in the window, remembered per agent, with Ask, Allowed and Blocked
…es, Agents has Outside agents and Always allowed
…self tour with Kokoro

The script now clicks the Guests and Source inspector tabs. The tour gets a Takes tab step, highlights the marks panel instead of closing it, fills the marks Code field, and opens the Guests tab. Each step's words are spoken with af_heart before recording, and the step is held at least that long. The lines are laid at the chapter starts, set to -16 LUFS and muxed into video.webm as an Opus track. The limiter ceiling drops to -5 dBFS so the tour stays under -1.5 dBTP after Opus. 2026-12-01 EST.
…oro narration

There are 9 chapters, 87.2 s (was 8 and 76.4 s). The af_heart narration starts within 0.07 s of each caption, at -16.4 LUFS and -2.7 dBTP, with no clipping. The agent references list the new chapter (node scripts/agents.mjs sync). The studio take this run also recorded was not kept, because the looping fake microphone cut the host's line. 2026-12-01 EST.
The tip at 60 percent of the scrubber now reads 0:5x, where the 76-second tour read 0:4x. 2026-12-01 EST.
…inside its row, and shows it only while a setup runs
… each voice-over line with the export's level and ramps
…dimming them, and Audio only opens on Sound with its microphone
…ads with the microphone, preset, Noise suppression and Check level, its browser switch named Browser noise filter
…, HubSpot, Salesforce, Google, GitHub and oEmbed say FormREC, with their API names, ids and headers kept
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner December 2, 2026 03:46
…d names FormREC

ai-engine expects the built-in voice's message when no voice is ready. missing-apply names its stand-in program through FORMREC_TTS, the only way to a program of the flite shape since 0.11.0. docs/api.md is regenerated from the code (FORMREC_WRITE_API_DOC=1) after the display name changed.
@nodemode-ai

Copy link
Copy Markdown
Contributor Author

FormREC 0.11.0: a natural built-in voice (Kokoro) with voice-over, the Studio inspector, and the Form shell finished

CI fixes on top of the release

Two commits after review of the first CI run:

  • style(desktop): one line in src-tauri/src/traffic_lights.rs takes rustfmt's line break. cargo fmt --check, cargo check --locked --all-targets and cargo test --locked (39 passed) pass.
  • fix(tests): tests/ai-engine.test.ts expects the built-in voice's message when no voice is ready; tests/missing-apply.test.ts names its stand-in voice program through FORMREC_TTS, the only way to a program of that shape since 0.11.0; docs/api.md is regenerated from the code (FORMREC_WRITE_API_DOC=1) after the display name changed to FormREC.

Tests

  • tests/missing-apply, tests/ai-voice, tests/ai-engine and tests/integrations-sdk: 33 passed.
  • No app code changed.

@nodemode-ai
nodemode-ai merged commit 9fa578e into main Dec 2, 2026
7 checks passed
@nodemode-ai
nodemode-ai deleted the feat/kokoro-voice-0.11.0 branch December 2, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant