You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(voice-integration): Add whispercpp voice integration and model management - #756
…anagement
- Added native headers and script for whispercpp integration
- Updated VoiceServiceRegistry to include WhisperCppFfmSpeechToTextFactory
- Modified AppConfig and AskimoHome to manage whisper model paths
- Enhanced VoiceSettingsSection with UI for whisper model selection and download
- Updated various components to support the new whispercpp provider and model checks
The ofInputStream() body is left open on non-2xx responses. Repeated failed attempts can retain HTTP connections/resources until GC; close the body before throwing.
This issue also appears in the following locations of the same file:
line 103
line 108
Handle download cancellation separately from UI errors
This handler also catches CancellationException, so cancellation of the composable scope is converted into a UI error/state update instead of propagating. Handle cancellation separately before ordinary download failures.
File size does not identify a native binary. After an app update, a replacement library with the same byte count is skipped, so the persistent profile cache can load an old ABI against the new bindings. Use a versioned extraction directory or verify a bundled digest rather than size alone.
The response body is an open InputStream, but the non-2xx path throws without closing it. Repeated failed downloads can retain HTTP connections and file descriptors until GC; close the body before reporting the status failure.
Preserve coroutine cancellation during download errors
The catch wraps CancellationException raised by ensureActive() as a service failure, breaking coroutine cancellation semantics. Delete the partial file and rethrow cancellation unchanged before handling ordinary download errors.
ATOMIC_MOVE is optional and throws AtomicMoveNotSupportedException on valid filesystems. In that case a fully downloaded model is reported as failed and never reaches its final path. Fall back to a regular replace move, as PropertyFilePreferences.kt:52-60 already does.
A non-2xx response already owns an open InputStream body, but this branch throws without closing it. Repeated failed/retried model downloads can leak HTTP connections and descriptors; close the body before raising the service exception.
Update generated defaults to select the local Whisper provider
The effective first-run default is still OPENAI: AppConfig.DEFAULT_YAML writes voice.stt_provider: OPENAI (AppConfig.kt:923-926), and new profiles are deserialized from that file. Consequently this constructor-default change never selects the new local provider in a normal installation, despite the new availability/UI logic treating it as the default. Update the generated default YAML to LOCAL_WHISPER_FFM as part of this change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Related Issue(s)
Type of Change
What Changed & Why
Support local whispercpp
How to Test
./gradlew testScreenshots / Recordings (if applicable)
Checklist
main./gradlew spotlessApplyand./gradlew detektlocally./gradlew testand all tests passgit commit -sAdditional Notes