Commit Graph
56 Commits
Author SHA1 Message Date
Palash Debnath 4aa2cd27b6 Polish desktop setup, settings and studio workspaces (#4527)
* Polish desktop setup, settings and studio workspaces

* Add desktop refresh changelog entry

* Check home creation destinations in the desktop guard

* Align desktop workflow checks with the redesigned controls and restore paired consent choices

* Stabilize native window and titlebar checks during navigation

* Restore a continuous workspace background across desktop chrome

* Verify workspace and settings panel corners in the theme smoke

* Give Support a full-width donation panel and stack sponsor, Pro and contact sections

* Give sponsor marks room and simplify Support actions

* Organize Support contact actions in a responsive grid

* Fix desktop take navigation, drawer visibility and shortcut capture

* Recover desktop setup choices when local settings cannot be read or saved

* Welcome users with the studio cat and credit the open-source community

* Compare exact filesystem identities before claiming an existing terminal command

* Check visible setup controls and model headings and isolate Home credits
2026-11-29 08:57:06 +05:30
Palash Debnath 4d051d9664 fix: delete installed engines, unstick Wi-Fi-wait downloads, compact dictation overlay (#4490, #4494, #4493) (#4496)
* fix(engines): let users delete an engine VoiceStudio installed (#4490)

Nothing in the UI called the sidecar uninstall route, so a one-click engine
(MOSS-SoundEffect and its ~11 GB of weights, IndexTTS, CosyVoice, ...) could
never be removed, though the engine docs promised an Uninstall button.

- The shared install control offers Delete, with a confirmation, for an
  app-managed install (never a user's own clone); Settings > Models shows it
  on each installed one-click engine and Tools > Sound effects at the top.
- Uninstall stops the engine's running sidecar first, refuses while it is
  mid-request (409), and reports files it could not delete (500 with the
  folder) instead of a silent partial delete.
- Engine docs name the Delete button.

* fix(mobile): never leave a model download stuck at Waiting for Wi-Fi

Wi-Fi-only downloads parked on the network policy (metered or hotspot Wi-Fi,
cellular with Mobile data off) had no way forward and a generic label. Say
why they wait, offer Download on this connection, apply the Mobile data
switch to waiting transfers, and retry policy/constraint disagreements
sooner. Same on Android and iOS. (#4494)

* feat(dictation): optional compact level-meter overlay for press-and-hold dictation (#4493)

* chore(changelog): name the batch fragments after #4496 and credit reporters

* fix(engines): delete read-only files when removing an engine

Windows marks git pack files read-only, so rmtree(ignore_errors=True) left
.git behind and every engine delete there would have been reported as
incomplete. Uninstall now clears the read-only bit and retries, and only
files another process holds open are reported.

* fix(engines): keep every request away from an engine while it is deleted

A request holds the engine's op lock while it resolves its environment,
before its process exists, so the old live-process check missed it and a
spawn could rebuild part of the install mid-delete. The delete route now
marks the engine removing (new spawns refuse it), takes every instance's
op lock without waiting (busy → 409) and stops its sidecar before removing
files. Leftovers of an incomplete delete stay 'managed' so Delete is still
offered. Moves the stop out of sidecar_install, which also removes an import
cycle.

* fix(engines): Delete stays available for leftovers, sends one request, and promises only what it removes

- Delete is offered for any managed folder, not only a healthy install, so an
  incomplete delete can be retried.
- A ref guard and a disabled confirm button stop a second DELETE.
- The confirmation no longer claims to remove models in the shared download
  cache, which uninstall leaves in place.

* fix(mobile): relabel restored waiting downloads; harden iOS download replacement

Android: a queued waiting entry now takes the freshly computed waiting reason
on restore while active progress is kept. iOS: the Mobile data setting
restarts waiting transfers, downloadNow persists the intent before replacing
the task and keeps the model paused with a reason when saving fails, and task
ownership uses a per-model generation so a cancelled task never clears or
finalises a replacement's entries. (#4494)

* fix(dictation): show the full recorder after an empty result and report compact-overlay save failures

* fix(engines): retry only removals when a read-only file blocks an engine delete

rmtree also reports os.open/os.scandir failures to the callback, and calling
those with one argument raised TypeError and aborted the delete before its
leftover check. Other failures now reach that check.

* test(android): name freeBytes in the new ModelDownloads test calls

Five positional lambdas matched both the primary constructor and the
bundled-assets one, so the unit tests failed to compile.

* fix(engines): reference-count delete marks, refuse installs during a delete, never chmod a symlink target

- engine_removal holds counted 'being deleted' marks shared by the delete
  route, the sidecar spawner and the installer: an overlapping delete that
  gives up no longer clears the mark of one still removing files.
- start_install refuses (409) while the engine is being deleted, and the
  install/repair button is disabled while a delete is pending.
- The read-only retry makes the parent folder writable and never chmods a
  symlink, which would follow it to a shared interpreter.
- iOS test: drop an assertion that could only pass after the gate opened.

* docs(structure): 146 services

* fix(engines): keep POSIX file modes on delete; make the iOS replacement test observe the cancelled transfer
2026-11-26 21:34:13 -08:00
Palash Debnath 29ca59dcdc ci: retry rate-limited Android downloads before every build, and racy test cleanup (#4495)
* ci(android): retry every Maven Central download on HTTP 429

* changelog: add fragment for #4495

* test(electron): retry temp-folder cleanup that races a late write

macOS CI failed backend-startup-budget's teardown with ENOTEMPTY when a
write landed while the folder was being removed. Every test that removes
its temp folder with rmSync now retries, as runtime-launch-refusal does.

* test(electron): let report-bug's node:fs typing accept cleanup retries

* ci: read Gradle's real retry key, catch 429s behind any cause, restart racy temp cleanup

- gradle.properties: Gradle 8.13 reads repository.max.tentatives, not
  max.retries, so the limit stayed at three attempts.
- The dependency warm-up walks every getCauses() branch, so a 429 behind a
  timeout in a multi-cause failure still triggers the shell retry.
- removeTempDir() restarts the whole recursive removal on ENOTEMPTY/EBUSY/
  EPERM; rmSync's maxRetries re-runs only the final rmdir and keeps failing
  when a file lands after the folder was listed. Used by every test that
  had the retry options, with a regression test.

* ci: retry rate-limited Gradle downloads before every Android build

The warm-up moves into mobile/android/scripts/resolve-dependencies.sh and its
init script, now run before the emulator jobs and both release builds as well
as the unit-test job. Only a 429 is retried; any other failure is left to the
build step. Release recovery of an older tag takes the scripts from the
workflow's own commit, like the SDK installer. A test keeps every Gradle job
behind the warm-up and checks the retry behaviour with a fake gradlew.

* test(android): give the dictation protocol waits room on a busy CI runner

emptySummaryAndLegacyEofPreserveCommittedText timed out at 2 s on the shared
two-worker runner. Every wait in the file is for an event that should happen,
so one 10 s limit keeps real hangs fast to fail without flaking.

* ci(android): read Maven Central through Google's mirror first

Maven Central kept answering the shared runner IPs with HTTP 429 through
every retry (four rounds over ~5 minutes). resolve-dependencies.sh now
installs an init.d script that lists Google's Maven Central mirror ahead of
the build's repositories for every later Gradle run in the job (build, tests,
emulator). Maven Central stays listed after it, so anything the mirror lacks
still resolves. The release workflow checks the script out with the retry.
2026-11-26 19:05:12 -08:00
Palash Debnath b6f05ec1cc fix(android): preserve drafts and permission failure ownership (#4206)
Keep Android manuscript editors bounded, preserve draft recovery through recreation, retain the initiating permission observation, and publish concurrent metadata saves through separate staging files. Includes the permission repair tracked by #4210.
2026-11-16 15:36:24 +05:30
Dery Ferdika 4da51ddb48 fix(diagnostics): preserve operation consent and recovery (#4184)
Keep delayed failure reports bound to their original diagnostic permission and preserve accepted work through storage recovery. Retain historical download provenance and owned session markers, keep expected refusals local, and preserve main/manual native validation runs.

All current-head platform, backend, desktop, security, identity and CLA checks passed; both review bots cleared the final repair.
2026-11-16 07:07:30 +05:30
debpalash 0c18821060 fix(diagnostics): retain phone playback and task failure ownership 2026-11-15 19:00:30 +05:30
debpalash b13adec3b0 fix(diagnostics): preserve consent through native recovery and main callbacks 2026-11-15 09:36:09 +05:30
debpalash 5014cca147 fix(diagnostics): retain action consent across callbacks and exception hooks 2026-11-15 08:15:52 +05:30
debpalash 64e8268baa Merge remote-tracking branch 'origin/main' into feat/opt-in-supermetry-diagnostics
# Conflicts:
#	backend/api/routers/dub_export.py
2026-11-15 07:06:37 +05:30
Palash Debnath 6d2a6b726b feat(dubbing): export plain transcripts on desktop and paired phones (#4155)
Add plain UTF-8 transcript export to Electron Dubbing and paired iOS/Android, preserving existing subtitle and media exports. Fix retained export-flag validation on both phones and cover backend, renderer, save-dialog, and native export behavior. Thanks @shivamdhiman999111-source for the request. All effective checks, including native mobile CI and required backend/frontend tests, passed; CodeRabbit and Greptile feedback was reviewed and addressed.
2026-11-15 07:04:01 +05:30
debpalash 998dca954f fix(diagnostics): fence consent history and recover durable delivery 2026-11-14 22:01:50 +05:30
debpalash fece0f84af feat(diagnostics): add separately opted-in automatic failure reports 2026-11-14 19:27:22 +05:30
debpalash cac74d7c13 fix: address review findings (#3953)
- skip the clone screen's created() callback when the job was cancelled during the saved-clone cleanup (screen already disposed); saving and cleanup still finish
2026-11-10 05:54:08 +05:30
debpalash cc235fa383 fix(android): keep the clone editor busy until a saved clone finishes cleanup
Progress now stays up through refresh and sample cleanup, so a new sample cannot be started and then discarded by the finishing clone; a saved-clone flag keeps that cleanup from being reported as interrupted.

Maintainer follow-up to #3953 by @hkarmoush.
2026-11-10 05:09:14 +05:30
debpalash 137863e925 fix(android): a saved clone can no longer be reported as interrupted; speech test waits on progress
Once the voice is saved, the clone clears its progress and finishes refresh, cleanup and created() without cancellation, so a cancel or leaving the app cannot skip created() and offer a Retry that would duplicate the voice. The speech-interrupt test no longer waits for the decoder-held clone's cancellation marker, which it never reaches.

Maintainer follow-up to #3953 by @hkarmoush.
2026-11-10 04:51:06 +05:30
debpalash 934318e388 fix(android): scope clone progress and interrupted notice to the owning job; reliable rotation test
A cancelled job that finishes late no longer clears the progress of the job that replaced it, and only an interrupted clone shows the clone editor's Retry notice (speech is just stopped). The rotation test now checks the interrupted flag and the kept sample right after the activity is recreated instead of re-rendering the screen by hand, which timed out under Robolectric.

Maintainer follow-up to #3953 by @hkarmoush.
2026-11-10 04:22:37 +05:30
debpalash 446e0b61b7 fix(android): keep the interrupted clone draft across rotation; no retry while recording
A configuration change no longer deletes the sample or clears the interrupted notice: screen teardown during a rotation uses the interrupt path, and only truly leaving the screen discards the draft. Retry is disabled while a new sample is recording, when the sample file is gone, or when the clone models are not ready.

Maintainer follow-up to #3953 by @hkarmoush.
2026-11-10 03:52:31 +05:30
hkarmoush b1aee2ca2f fix(android): report an interrupted phone clone and keep the sample for retry
Leaving the foreground cancelled an on-device clone with no message and reset the form. It now shows an interrupted notice with Retry and keeps the sample and name, keeps the screen on while cloning, maps Throwable failures such as OutOfMemoryError to mobile.local.inference_failed, and reports the busy case instead of ignoring it.

Refs #3711, #3716
2026-11-10 00:02:30 +03:00
debpalash f729854b4f fix(android): show clone progress and verify the recording workflow 2026-11-04 00:10:37 +05:30
Shimul Debnath 40c5e3ce6f fix(mobile): make model downloads resumable with background transfers and live progress (#3752)
Persist mobile model download intents, resume parallel ranges in background transfers, and show percentage, speed and ETA. Preserve partial downloads through retries and validate SHA-256 before activation.

Validation: all 35 PR checks passed, including native iOS and Android builds, tests and inference.
2026-11-01 19:27:50 +05:30
Palash Debnath cc91cac752 feat(mobile): make model RAM recommendations advisory (#3738)
* feat(mobile): make model RAM recommendations advisory

* test(mobile): verify low-memory try-anyway keeps licence consent

* docs(changelog): record advisory phone memory recommendations

* fix(mobile): preserve RAM advice and safe automatic model choices

* fix(mobile): keep Clone and Dub RAM warnings outside advanced controls
2026-10-31 23:40:29 +05:30
Palash Debnath 703115010b feat(mobile): add Donate, Pro and Other Apps pages (#3728)
Add native support and project pages to both phone apps with bundled artwork, shared translated content and adaptive layouts.
2026-10-31 19:23:49 +05:30
Palash Debnath faa5294359 fix(mobile): restore OmniVoice speech and expand phone voice models (#3715)
Restore saved-voice OmniVoice speech, add native phone voice models and connect the public Gallery. Harden mobile first-use flows and consent, and skip runtime builds for documentation/test-only changes while retaining lightweight Docker Hub documentation publishing. Include the CLA-signed storage and contact test fixes from #3706 and #3707. Fixes #3671.
2026-10-31 15:29:16 +05:30
debpalash 0be1faa3f7 Merge main into contributors refresh; share the iOS portrait format with export-mobile-contributors 2026-10-26 01:54:09 +05:30
debpalash 9549fd1fb9 feat(mobile): expand compact contributor credits and Home summary 2026-10-26 01:27:09 +05:30
debpalash 685579b3cb fix(mobile): preserve contributor touch targets at large text sizes 2026-10-26 01:14:58 +05:30
debpalash 6503bca6e4 feat(home): refresh contributor credits and avatars from GitHub weekly
scripts/update_contributors.py regenerates the bundled Home contributor
snapshot (Electron data + avatars, iOS imagesets and logins, Android
logins, README Team rows) from the GitHub contributors API, with avatars
re-encoded as fixed-size PNGs so the apps stay offline. A weekly
workflow opens a review PR when anything changed.
2026-10-26 01:12:40 +05:30
debpalash 356b34d5d5 feat(mobile): add compact Home heroes and maintainer profile cards 2026-10-26 01:10:20 +05:30
debpalash 44523d6a40 Fix mobile parity CI and project transfer review findings 2026-10-25 17:43:09 +05:30
debpalash 87aec9a20c Fix handoff round trips and native integration regressions 2026-10-25 17:08:37 +05:30
debpalash a65cfa92f9 Expand native mobile production and editable project handoff 2026-10-25 16:55:55 +05:30
debpalash 228df0df76 fix(mobile): harden request shutdown and preserve complete audio exports 2026-10-25 02:28:08 +05:30
debpalash 4599b97e39 Merge remote-tracking branch 'origin/main' into feat/mobile-production-parity
# Conflicts:
#	mobile/android/app/src/main/kotlin/com/voicestudio/mobile/MainActivity.kt
#	mobile/android/features/src/main/kotlin/com/voicestudio/mobile/features/speak/SpeakScreen.kt
2026-10-25 02:01:10 +05:30
debpalash 97ee0f3707 feat(mobile): add native production workspaces and phone processing 2026-10-25 01:59:47 +05:30
debpalash dd88464d16 feat(home): badge the core maintainer team across all clients 2026-10-24 23:39:06 +05:30
debpalash e2cd350cd2 fix(android): align native presentation and compact Home 2026-10-24 23:22:47 +05:30
velixio 4dab817e78 feat(mobile): report generated content from the phone apps
Google Play's AI-generated content policy needs an in-app way to report
offensive output. Every Speak take, cloned voice and finished dub, on the
phone or the paired computer, gets a Report action on iOS and Android. The
sheet posts the reason, an optional note, the typed text only when ticked,
the app version and the model to appapi.voicestudio.sh/v1/content-reports
when the user taps Send; no audio or identifiers. One idempotency key per
draft is reused on retry, a 409 gets a new key, and 429/400/other errors
keep the draft. Strings land in all 21 locales; the sanctioned-call lists,
mobile docs and the Play data safety answers describe the new request.
2026-10-24 15:13:50 +05:30
debpalash dfd2445d4f fix(android): keep the Speak draft when changing run location 2026-10-23 22:09:50 +05:30
debpalash 29f3b43fa3 fix(mobile): keep stereo channels and portable licence notices 2026-10-23 20:24:54 +05:30
debpalash 538a9f58de fix(mobile): restore dub video surfaces and playback audio sessions 2026-10-23 19:07:47 +05:30
debpalash 829552e6a1 fix(android): finish failure receipts before processing worker updates 2026-10-23 17:22:17 +05:30
debpalash 931139ede4 fix(android): serialize dub cancel/resume/delete, place raw PCM by timestamp, split dub utterances at pauses, keep separate speak and clone model choices 2026-10-22 16:35:47 +05:30
debpalash 12961b10ab feat(android): Dub tiles, animated glyph on job cards, single-card pickers 2026-10-19 19:25:14 +05:30
debpalash b0cb46aa14 fix(android): template string keys for the contract test, keep QR pairing explicit, await the async speak preference in the phone-voice test 2026-10-19 18:50:39 +05:30
debpalash 4f66610062 fix(mobile): pair blank-recognition dub references with their own text; connect after Android QR scan 2026-10-19 18:40:31 +05:30
debpalash 830d920f27 feat(mobile): redesign Dub, add Home contributors, compact icon-only dock
Dub: source card with animated vector glyph, language/voice tiles, consent
row and live job cards. Home: Electron title and bundled contributor avatars
(offline), guarded against drift by a contract test. Android gets the source
card, glyph, contributors and icon-only navigation.
2026-10-19 17:57:14 +05:30
debpalash 25b47e1cdc feat(mobile): plain-language model licence review on iOS and Android
Lead with category, four rights rows, licensor notes, credit and https
licence/source links. Raw terms become a labelled Exact terms list that
covers every fingerprinted key, kept under a collapsed section.
2026-10-19 17:57:14 +05:30
debpalash aff89d8111 feat(ios): refine native presentation and compact tab headers 2026-10-19 16:12:03 +05:30
debpalash b3ce49936d feat(mobile): complete native workflows and Electron-style Home 2026-10-18 22:41:22 +05:30
debpalash 08d9bcdd95 feat(mobile): UI polish from the emulator review
- VoiceStudio logo as app icon and launch screen on both apps.
- Screens show model names, never ids or licence codes; one compact
  'needs N downloads · size · Get' card per screen.
- Semantic icons for Settings rows and Dub steps; no duplicate Settings
  gear; current selection checked in every picker, palette swatches.
- Removed a stray model-id chip; Dictate actions sit above the tab bar;
  consent note fits a phone app; Speak chips share the row evenly.

Checked on an arm64 Android 14 emulator.
2026-10-18 05:46:21 +05:30