Skip to content

feat(audio-rocm10): add audio.cpp with the experimental ROCm 10 backend (io.github._0xShug0.AudioCpp.ROCM10) - #1346

Draft
rhgKc2yp wants to merge 1 commit into
flatpark:mainfrom
rhgKc2yp:add/io.github._0xShug0.AudioCpp.ROCM10
Draft

rhgKc2yp wants to merge 1 commit into
flatpark:mainfrom
rhgKc2yp:add/io.github._0xShug0.AudioCpp.ROCM10

Conversation

@rhgKc2yp

@rhgKc2yp rhgKc2yp commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Adds the requested AMD edition alongside the existing audio.cpp backend packages. The terminal launcher serves the embedded browser interface on localhost port 8083, with models and relative output in private persistent app data. This is a candidate for an AMD GPU tester.

Packaging:

the official v0.9.5 ROCm 10.0.0 Linux test archive, unmodified, on Freedesktop 26.08. Twenty-five fixed extra-data downloads supply AMD's matching runtime and device wheels for all 23 compiled GPU architectures. Only the BLAS device assets used by the application are retained. No Python installer or host ROCm SDK is needed. User arguments override launcher defaults.

Sandbox:

network access serves the loopback API/UI and downloads models. Declared --device=all exposes KFD as required by ROCm, and also exposes other host devices. No host model directory is granted by default; the metainfo documents an optional read-only folder grant and its reset command.

Validation:

descriptor audit, shell syntax, AppStream and desktop-file checks; 31 link/download-size checks; release resolver; offline root-without-capabilities unpack with every size and SHA-256 verified; signed local build and repository install. CLI help and enumeration work; this machine exposes only its Intel CPU. The HIP server serves health, embedded HTML and model APIs. A native PulseVAD package download persists across restart, and CPU-only VAD inference completed on generated audio. A custom server port was checked. WAV upload and occupied-port behavior were exercised; no stray home/autostart/desktop files were found.

Not tested:

AMD GPU detection and HIP inference, browser rendering, speech playback, microphone capture and saved voices.

Test GPU detection and inference

Record GPU model, driver/kernel version, distribution, and the commands and logs from the following checks:

ls -l /dev/kfd /dev/dri
flatpak run --command=audio-cpp-cli io.github._0xShug0.AudioCpp.ROCM10 --list-devices
flatpak run io.github._0xShug0.AudioCpp.ROCM10

Open http://127.0.0.1:8083 in a browser. The desktop entry starts the server in a terminal; there is no native application window. This edition has its own persistent models/voices and relative CLI output under
~/.var/app/io.github._0xShug0.AudioCpp.ROCM10/data/.

  1. Confirm the AMD GPU appears in the device list and the WebUI loads.
  2. Use the native model manager in the UI to download a model supported by HIP. Record the exact model, precision and download result. Some workflows need Python conversion or extra tools and are not provided by this package.
  3. Generate speech from a short sentence with HIP selected. Keep the complete server log showing the chosen GPU/backend, and check the resulting audio plays and contains intelligible speech. Successful CPU fallback does not count as a successful ROCm test.
  4. Upload a WAV through the browser and run speech recognition with a HIP-supported ASR model. Record the model and result.
  5. Stop with Ctrl+C, run flatpak kill io.github._0xShug0.AudioCpp.ROCM10, restart, and confirm downloaded models and saved voices remain usable.
  6. Check that uploads/output stay in the private app data directory, that unrelated files were not created in the host home folder, and that a second launch reports the occupied port without disrupting the first server.

Browser playback/recording and the browser's own settings belong to the browser, so they do not require an audio socket grant on this server package. Window class, tray and MPRIS checks do not apply to the server itself.

For an existing model directory, optionally grant only that directory:

flatpak override --user --filesystem=/path/to/models:ro io.github._0xShug0.AudioCpp.ROCM10
flatpak run --command=audio-cpp-cli io.github._0xShug0.AudioCpp.ROCM10 --help
# Pass the model and inference arguments documented by upstream for that model.
flatpak override --user --reset io.github._0xShug0.AudioCpp.ROCM10

Leave the test install, remote and data in place until review is finished. Follow the full testing playbook and report failures with the command, model, GPU and logs.

@rhgKc2yp rhgKc2yp added the needs-testers Needs someone with specific hardware or a setup we don't have label Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Test this PR

A test repository with the apps this PR changes, built from 8e75199 in this run.

App x86_64 aarch64
io.github._0xShug0.AudioCpp.ROCM10 yes no

Install:

flatpak install --user https://test.flatpark.org/pr/1346/io.github._0xShug0.AudioCpp.ROCM10.flatpakref

Already have it from FlatPark? Switch to the test build:

flatpak remote-add --user --if-not-exists flatpark-pr1346 https://test.flatpark.org/pr/1346/flatpark-pr1346.flatpakrepo
flatpak install --user --reinstall flatpark-pr1346 io.github._0xShug0.AudioCpp.ROCM10

To go back to the released build (for a new app, flatpak uninstall --user <id> instead):

flatpak install --user --reinstall flatpark io.github._0xShug0.AudioCpp.ROCM10
flatpak remote-delete --user flatpark-pr1346

Drop --user to install system-wide. The repository is signed with the FlatPark testing key (7858 FD7D D9F5 27EC 0234 2A9A 7630 ADC3 5A94 2414), not the release key. It is withdrawn when this PR closes or loses the needs-testers label. This comment is updated on every push.

This branch was successfully deployed

1 active deployment
testing — 8e751998 Deployed Nov 17, 2026 by rhgKc2yp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-testers Needs someone with specific hardware or a setup we don't have

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant