Skip to content

Rhapsode 0.3.6-beta

Latest

Choose a tag to compare

@endynamoo endynamoo released this 26 Nov 14:54
· 17 commits to main since this release
3d9c020

The first release since 0.3.4-beta: the 23 findings from a full read of the code, on-device
translation that works on a first install, the stills engine offered at first start, and
ffmpeg installable from Settings. Windows is the tested platform; the release notes state
what still needs a Mac, a Linux machine and an Intel GPU.

Added

  • ffmpeg can be installed from Settings. Without it MP3 export fell back to WAV and
    chapter films could not be cut, and the error told every platform to use Homebrew. Settings
    → ffmpeg fetches the pinned gyan.dev release build (9.1, 113 MB, sha256 checked) into the
    data directory; config.find_tool prefers that copy over PATH. That build is GPL-3.0, so
    licenses/NOTICE.txt, licenses/SOURCES.md (source commit and written offer) and
    THIRD_PARTY.md name it, and the archive's own LICENSE is kept beside the binary. Nothing
    GPL is added to the installer: the reader asks for the download.
  • The stills engine is offered on first start, not discovered inside Cinema. A machine
    with a supported GPU used to meet Manga as "no stills engine" with advice to run a
    PowerShell script. The first-run sequence now ends with a third card - after the voice and
    translation - offering Set up the stills engine, about 16 GB, one time: one tick, the
    same script the installer's optional task runs, its output on screen, and Settings →
    Stills engine to start it again. A machine with no usable GPU is not offered it, because
    a placeholder is the right answer there.
  • Translation works on a first install, without installing anything else. Until now a
    foreign voice needed a model server you already ran (llama.cpp, LM Studio, Ollama), so a
    fresh install answered "Translation is not set up on this machine" the first time someone
    chose one. The first start now offers a one-time download of an on-device translator -
    llama.cpp plus Qwen2.5-Instruct, 4.5 GB, or a 1.1 GB smaller model - fetched only when the
    box is ticked, with the same progress the voice download uses. Settings -> Translation can
    start it again at any time. Nothing leaves the computer.
  • Settings -> Send these to my server routes individual languages to a server you run,
    for the ones the bundled model cannot do. Hindi is measured and stated as such: Spanish,
    French, Japanese and Chinese read well, Hindi needs that server (or reads the original
    text with an accent).
  • Translation requests now carry a token cap and, for the bundled server, a repetition
    penalty. At temperature 0 an unstable decode repeated one clause until the context ended -
    measured on Japanese and Hindi - which is a read that never finishes.
  • Hindi is refused rather than answered. Every bundled model measured produced fluent
    nonsense in Hindi (issue #150), and Rhapsode would read that aloud. A Hindi voice now says
    plainly that Hindi needs a model server you run, and reads the original text with the
    voice's accent until one is connected. The translation cache key also carries the backend,
    so a sentence cached from one engine is never served after switching engines.
  • A machine with no Python can still set up stills. The Windows installer now carries uv (MIT, sha256 pinned), and setup_engine.ps1 uses it to fetch its own CPython 3.12 when no 3.11/3.12 can be started - the case a stranger with a fresh Windows account hits. The script also names MURMUR_BASE_PYTHON for people who keep their own interpreter elsewhere.
  • An existing GPU torch is reused. Upgrading a machine that already had a working image-venv used to re-download torch; setup now finds MURMUR_TORCH_PYTHON or the existing engine first and layers the rest on top.

Changed

  • The installer's optional engine task said "~3 GB of models"; it now says about 16 GB, which is what the setup fetches (interpreter, FLUX.2 [klein], 8.2 GB text encoder).
  • requirements-film.txt is gone. It was three comments and a no-op, yet five entry points presented it as the film dependency set; Cinema is set up by the app itself.
  • macOS bundles are labelled ad-hoc signed, not notarized, in the platform table.
  • The stills setup now fetches the text encoder. Before, it installed torch and the q4
    transformer and left the encoder (FLUX.2 [klein]'s text encoder, VAE and tokenizer - 8.2 GB
    on a clean fetch) to download during the first still, which assumed the machine already had it. The
    card now says about 16 GB and the setup is complete when it says ready; Settings says
    "the text encoder is missing" for an install that predates this.
  • The stills offer is Windows-only. Apple Silicon paints through mflux with nothing to
    install, and Linux has no setup script - a Mac no longer gets a card whose only possible
    answer is "the script is missing".
  • /api/health reports ffmpeg, because MP3 export silently falls back to WAV and chapter
    films need it; the film error now names the install command for the platform instead of
    brew install ffmpeg on Windows.
  • The installer still ships Japanese and Chinese voices; a build made without
    requirements-lang.txt now stops instead of shipping them greyed out.

Fixed

  • The Linux launcher starts. run.sh runs with set -u and read $MURMUR_HOME, which is exported only on macOS, so the documented Linux install died before it reached the app. It asks the app where its data lives instead.
  • Ticking Smaller download on the translation card did nothing. The smaller option only
    relabelled the size; the other checkbox was silently the start button, so a reader who chose
    the 1.1 GB model saw a dead control (issue #165). Either box now starts the download it
    names, and a browser test ticks only the smaller one and asserts the request carries
    {"variant": "1.5b", "download": true}.
  • A download's status call could deadlock. state() takes the lock and the early returns
    inside start_download() called it while already holding a plain Lock, so the second call
    hung forever. Both the ffmpeg and the translation-model downloaders are reentrant now; the
    ffmpeg test that asks "already installed?" is what caught it.
  • A packaged install never fetched the Japanese dictionary. fetch_language_data was only
    called by python -m murmur.bootstrap, which a frozen app never runs, so the first Japanese
    sentence pulled 23 MB with no progress. The app's voice download now fetches it too.
  • The stills setup could report success with nothing to paint with. The q4 transformer
    download could return without error and the script carried on, and the "ready" marker was
    written before the weights - so the card said Installed with no transformer on disk. The
    marker is now written last, the download's exit code is checked, and a transformer smaller
    than 1 GB counts as missing.
  • Downloads no longer stall forever on Xet. huggingface_hub's chunked transfer sat at zero
    bytes with no error and no timeout on Windows (seen on the 2.4 GB transformer and on the
    first still's text encoder). The setup script and every painter process now set
    HF_HUB_DISABLE_XET=1, which uses the classic HTTP path that finishes.
  • The release check that installs the app into a throwaway profile no longer damages the
    machine's own Rhapsode entry in Apps. An entry left behind by a previous run of that check
    was saved as if it were the machine's and put back later, pointing at a temp directory that
    had been deleted - which is how a real 0.2.0-alpha entry was lost on 2026-11-23. Such an
    entry is now recognised at the start of the run and removed at the end, while a genuine
    entry is still saved and restored exactly as it was.
  • Keyboard hints and the shortcuts behind them now match the machine. On Windows and Linux the
    Add document button advertised ⌘N and the cog advertised "Settings (⌘,)", and the handlers
    only accepted the Apple key, so the hint named a key the keyboard did not have and the
    shortcut a reader actually had (Ctrl+N, Ctrl+,) did nothing. The hint is written per
    platform now, Ctrl works everywhere and ⌘ stays on Apple keyboards.
  • A translation server you connected in Settings or on the first-run screen now actually
    translates.
    The address was stored as an OpenAI base (…/v1) and POSTed as one, which
    every compatible server answers with 404, so the app promised translation and then read the
    original text. The completion endpoint is appended for a base, a /v1 URL or a full
    …/chat/completions alike.
  • Chapter films keep their ending. Every scene clip already carried the crossfade, and the
    output was cut by one crossfade per join on top of that: a ten-scene chapter lost about 11
    seconds of narration, mid-sentence. The film is now cut at the narration's own length.
  • A stills engine that fails to warm up says so instead of leaving "Loading". The failure
    handler used a phase the activity record rejects, so it raised inside its own thread and the
    reader waited on a spinner with no explanation.
  • The installer builds its language gate on every build, and launches the app once. The
    Japanese/Chinese check sat after a fail that had already exited, so a build without the
    language extra shipped greyed-out voices; and two postinstall entries started Rhapsode twice.
  • Two sentences synthesised at the same moment no longer fight over one temp file. Playback
    and an export asking for the same sentence shared a temp name derived from the cache key.
  • The fresh-install check can now see an orphaned stills engine. It searched for a process
    named fluxgen, but the painter runs as murmur.fluxgen under the image-venv Python, so
    "nothing is left running" could pass while a painter still held the card.
  • A missing language extra answers 400 with the advice, not 500. The phoneme stage raised
    the actionable error and the synthesis wrapper replaced it.
  • Deleting a document deletes its page word-box caches, not just the page images.
  • Stopping the painter closes painter.log and drops its exit hook, so repeated "Restart
    engine" stops leaking a locked log handle and piling up atexit entries.
  • Suffix range requests return the last bytes, not the first. bytes=-500 used to answer
    bytes 0-500.
  • An export without ffmpeg is offered and saved as the WAV it is. The dialog and toast
    named .mp3 whatever the server produced, and a failed status poll could leave "Exporting…"
    on screen forever.
  • run.sh leaves the data directory to the platform (only macOS is pinned to ~/.murmur)
    and opens the page with xdg-open on Linux, where open does not exist.
  • python -m murmur.bootstrap now fetches the Japanese dictionary it always promised.
    The function for it was never called and would have raised NameError; the weight download
    also gained a timeout, so a stalled connection fails instead of hanging the first-run screen.
  • A Linux machine with a GPU is no longer given the CPU profile. VRAM detection was
    Windows-only, which put the painter on a profile it refuses to run; the stills docs pointed
    Linux at a Windows-only script and the wrong interpreter.
  • uvicorn murmur.server:app --host 0.0.0.0 turns the token guard on. The bind was read
    from MURMUR_HOST only, so that start left the socket open to the network with no token.
    The access guard has tests for the first time.
  • A failed settings save says so and restores the real values, instead of leaving a switch
    showing a preference the server never stored.
  • POST /api/search/index {"doc": …} starts the worker it reports as started, instead of
    queueing the book for a worker that may not be running.
  • docs/ARCHITECTURE.md gives one test count (406) in both places.

Security

  • A page on another website can no longer act on the app. Any page the reader had open could POST to 127.0.0.1 - Quit, a 16 GB engine setup, model downloads - because a no-body POST needs no CORS preflight. Unsafe methods now require a same-origin Origin/Sec-Fetch-Site; command-line clients that send neither still work. The standalone engine sidecar refuses non-loopback binds, the film-image route validates its document id instead of joining it into a path, and the translation endpoint check parses the host rather than matching a prefix (127.0.0.1@evil.example was accepted).
  • The ffmpeg download is pinned to an immutable artefact. The URL was the moving ffmpeg-release-essentials.zip alias, so the next upstream release would have failed the 9.1 checksum and broken the new Settings download.
  • A SECURITY.md now documents private reporting; build jobs in CI are read-only and only tag jobs may attach release files; .gitignore covers the library databases, downloaded weights and the remote-access token.

What this beta still needs

Windows is the platform this was tested on. The packaged Setup.exe was installed into a
clean profile and driven end to end: first-run voice, the translation download, the stills
engine on an AMD RX 9070 XT (ROCm torch, FLUX.2 [klein], a rendered still), the ffmpeg download
and an MP3 export. That is one machine, not a support matrix.

Unverified, and the reason this is a beta:

  • macOS 13+, Apple Silicon (M-series) - Rhapsode-0.3.6-beta-arm64.dmg is attached; it
    builds and self-tests in CI, and a rebuild of this tag on an M-series Mac (macOS 27, CLT
    SDK 26.5, helpers at minos 26.0) passed the same self-test and was driven live: the window,
    a 325 MB voice download on a throwaway profile, playback with the word mark, Settings and
    health.ok (ocr: true via Apple Vision, ffmpeg: true). Playback was confirmed by the audio
    element's clock and the moving highlight, not by listening, and native click-through was
    blocked by Accessibility, so the interaction ran in the app's own served UI. Still ad-hoc
    signed, not notarized, never installed from a quarantined download; Apple Silicon stills
    (mflux/MLX) remain unexercised.
  • macOS 13+, Intel x86_64 - Rhapsode-0.3.6-beta-x86_64.dmg is attached, built and
    self-tested in CI. Stills are placeholders by design; the same Gatekeeper question applies.
  • Linux x64 - source install only. The launcher and the suite now run on a real Ubuntu
    runner: run.sh, the unit tests and the browser journeys all pass in CI
    (20a4242). There is still no stills setup script, and nobody has used it on a physical
    Linux desktop.
  • NVIDIA GPUs - the CUDA path is exercised by unit tests only; no NVIDIA card was used.
  • Intel GPUs on Windows - Intel OpenVINO/DirectML are not wired in; stills should stay
    placeholders, but that has not been confirmed on Intel graphics.
  • Chapter films - a still was painted and checked; a full MP4 chapter was not cut on this
    build.

Please open an issue with your OS, GPU, whether you used the installer or the source tree, and
what happened. Security problems go through SECURITY.md, not the issue tracker.

Also in this beta: 0.3.5-beta

  • Translation is detected and connected before it is needed, not discovered at the first
    foreign sentence.
    The first-run screen gained a second step: Rhapsode scans the usual
    local ports for an OpenAI-compatible server (llama.cpp, LM Studio, Ollama, vLLM), lists what
    it finds, takes an address if nothing is running, checks that address actually answers, and
    remembers it. Not now turns the Translate to voice language setting off instead of
    leaving a promise the app cannot keep. A saved endpoint is re-checked each time the screen
    opens, so moving or stopping the server is reported rather than silently failing. The scan
    is asked once per install, not once per restart.
  • A first start now prepares the voice instead of failing at the first play. A new
    install had no voice model and said nothing about it: the app opened empty, and the first
    press of Listen answered with an error whose fix was hidden in Settings. The window now
    opens on a Getting your voice ready screen with a real progress bar (bytes and speed),
    starts the 340 MB download itself, and disappears when the voice is there - and a failed
    play opens that screen rather than a toast. MURMUR_FIRST_RUN=0 keeps the old behaviour
    for tests and for anyone who would rather meet it in Settings. The installer also starts
    the app when setup finishes, because the app is where a progress bar can exist.
  • Audio you can actually play, and one sentence in three languages. The demo now includes
    docs/demo/audio/one-sentence-four-voices.mp3 (one sentence read in English, Japanese, Spanish
    and French, the last three translated locally) and reading-sample.mp3 (26 seconds of the demo
    book), both produced through the app's own /api/tts and published as files because GitHub
    renders no media from a repository. A three-panel clip shows the same sentence with the Japanese,
    Spanish and French bar, so the front page still shows the feature working.

Added

  • A fresh-install check that runs the artefact instead of the checkout.
    scripts\\fresh-user.ps1 gives the installer a brand-new profile - its own
    LOCALAPPDATA, APPDATA, USERPROFILE and TEMP, no models, no stills engine - then
    installs, starts, asks it what a first-time user would, quits, uninstalls, and proves
    nothing was written outside that profile and that the real uninstall entry was restored.
    22 checks in about two minutes; -FullFirstRun includes the 340 MB voice-model
    download. It exists because "works on my machine" is not evidence: this development box
    has the weights, the image environment and a populated data directory that no stranger
    has.

  • Five demo clips, recorded from this build. The README now shows the reader marking the
    spoken word, a scanned PDF page marked on the page itself, a library search across three
    books, a chapter read over a still the stills engine painted, and an English sentence read
    in Japanese through a local translation server - the last one with sound, muxed from the
    audio the app actually played. The GIFs sit in the README, and every clip's full-motion MP4,
    the demo corpus and the recording method live in docs/demo/, so a clip can be reproduced
    rather than trusted.

  • A Quit control, for browser mode. Closing a tab never stopped the server, so the
    voice model - and, once Cinema had been opened, the stills engine holding most of the
    card - stayed loaded with nothing on screen to say so, and there was no endpoint to
    ask it to stop. Settings now has Quit Rhapsode: it asks once, then releases
    everything and stops the server. It refuses requests from other devices, so a phone on
    the network cannot stop the app.

Changed

  • A scripted start can keep the app out of the default browser. When WebView2 is missing,
    the packaged app opens the page in the browser - the right first-run behaviour, and the
    wrong thing for an automated start, which put a tab on whatever screen was attached in the
    middle of a test. MURMUR_NO_BROWSER=1 suppresses it; the fresh-install harness sets it so
    the person decides when to look.

  • The installer is 12 MB smaller and carries one fewer copyleft binary. OpenCV ships a
    39 MB FFmpeg videoio DLL that nothing here calls - the app uses FaceDetectorYN, resize
    and a log-level call, and with the DLL renamed aside all three still work - so both build
    paths now drop it. The Windows installer goes from 166.5 MB to 154.5 MB, and the LGPL
    binary it used to ship with no purpose is gone. Replacing OpenCV itself is still #84.

  • The README opens with the clips. "In motion" - the five recordings of this build -

  • Linux and macOS free the models the same way Windows does. There is no job object
    on POSIX, so every long-lived child is now started in its own session and told its
    parent's pid, and the stills painter watches that pid: when the app disappears -
    including when it is killed in the middle of painting a tile - the painter exits
    instead of holding the card. Verified on Linux: a parent killed with SIGKILL, a child
    started by the app's own proc.spawn, gone within a second. A painter started by hand
    is unaffected.

  • The README says who the app is for: somebody turning anything they can read into an audiobook, somebody who likes generated manga stills, and somebody who wants to lift the parts into a different program. It now also says what to expect from pull requests (bugs first, reviews slow) and where the family of apps is going, including what the next one does (Opsis turns a book into a film of directed, generated and polished scenes; an alpha is running, and the open beta is targeted for before the new year) - and it replaces "the parts that were actually hard" with what each technology in the build is and why this mix works: the voice returns phoneme timings, so the highlight, the warm-ahead, the still beats and the MP4 cut are all read off the same clock instead of being guessed. It also corrects two stale claims: a platform table that still promised CPU stills, and a version badge stuck one release behind.

Fixed

  • Three things the live translation test caught. A pasted …/v1/chat/completions was
    turned into …/v1/chat/completions/v1 and reported as a 404, so the address every OpenAI
    client shows was the one address the app refused - it is reduced to its base now. A server
    the reader connected was overridden by an old MURMUR_TRANSLATE_URL in the environment, so
    Connect looked broken; the UI's choice wins, the variable is the fallback. And
    MURMUR_NO_BROWSER=1 now means headless - it suppressed the browser fallback but still
    opened a WebView2 window, whose page started the 340 MB download before anyone could look at
    the screen offering it.

  • The first-run screen asks about the right thing. /api/health reported "needs
    weights" from the model's loaded state, which is false on a healthy install until the
    first sentence is spoken; it now asks whether the weights are on disk, so only a real
    first run sees the screen.

  • An old CPU engine profile no longer leaves the stills engine switched off for good.
    0.3.0 offered a CPU profile that turned every scene into a placeholder; the button is gone,
    but the saved engine.json stayed, and Settings blamed the hardware instead of saying the
    machine was set to CPU. The profile is now reconciled on start - cpu on a machine whose
    card can paint becomes the recommended profile, the file is rewritten so it does not come
    back, and the engine panel says once what happened. A machine that really has no GPU keeps
    cpu.

  • build_app.sh creates build_assets/ before the Swift helpers write their logs into
    it.
    On a fresh clone both redirects failed, so the warning explaining why a helper did
    not build had nothing to print - the reason was the one thing worth keeping.

  • The Japanese and Chinese voices are an optional extra, and say so. pyopenjtalk
    ships only as source, so a source install had to compile it: a contributor who picked a
    Japanese voice was told by pip to install Microsoft C++ Build Tools, which nothing here
    documented. requirements.txt no longer pulls it; requirements-lang.txt adds misaki
    and pyopenjtalk for those two languages, and the installers already ship them. Without
    the extra the app runs normally and every surface that offers the voice says why:
    /api/health reports each language's availability, the voice picker shows
    (not installed) and disables those options with the reason on hover, and speaking
    anyway returns that sentence instead of a compiler traceback. python -m murmur.bootstrap
    also fetches the 23 MB Open JTalk dictionary, so a downloaded install speaks Japanese
    offline instead of reaching for GitHub at the first sentence.

  • The missing-model message is something an installer user can follow now. A packaged
    build told them to run python -m murmur.bootstrap, which does not exist in a frozen
    install; it points at Settings -> Voice model -> Download it again instead, while a
    source checkout keeps the command. Found by the new harness on its first run.

  • The README stopped shipping broken characters. A text round-trip through Windows'
    legacy encoding had double-encoded the punctuation in 44 lines of the front page - every
    em dash, the multiplication sign, the middle dots, the § in a cross-reference - so a
    reader saw three-character debris where a dash belonged. The same damage was in the
    stills module's comments and labels and in the installer's first line; all 51 places are
    repaired byte for byte, with no other change to those files. tests/test_encoding.py
    now fails if any shipped text file is not plain UTF-8, carries a BOM, loses a character,
    or contains a double-encoded run - and it is checked against the exact string that
    shipped, so the check itself cannot rot.

  • Quitting gives the models back. The stills painter is a child process holding most
    of the card, and it was supposed to be reaped by the operating system through a
    kill-on-close job object. That job was never created: murmur/proc.py passed Windows a
    64-byte struct where the API requires 144, then read the returned 64-bit handle as a
    32-bit integer, and both failures were swallowed. So ending the app mid-paint left an
    orphan: measured at 5,156 MiB of dedicated GPU memory still held, plus a stale
    flux-painter.lock that stopped the next session from painting at all. The job is
    created now and checked, a child dies with the app even in the middle of a tile, and a
    deliberate quit releases the painter, the voice model, the indexer and the database in
    that order - from the lifespan, from the quit route and from the desktop entry.