10 Commits

Author SHA1 Message Date
Deborah Mangan
f261e4937b Fix critical production safety issues
- Replace force-unwrapped URLs in cloud transcription services with safe guard statements
  * GroqTranscriptionService: Add URL validation before use
  * ElevenLabsTranscriptionService: Add URL validation before use
  * MistralTranscriptionService: Add URL validation before use
  * OpenAICompatibleTranscriptionService: Add URL validation before use

- Replace fatalError in VoiceInk.swift with graceful degradation
  * Implement in-memory fallback when persistent storage fails
  * Add user notification for storage issues
  * Use proper logging instead of fatal crash

- Fix dictionary force unwrap in WhisperPrompt.swift
  * Add safe fallback when default language prompt missing
  * Prevent potential crash on dictionary access

- Wrap debug print statement in #if DEBUG directive
  * Eliminate production logging overhead in VoiceInk.swift

These changes prevent 6+ potential crash scenarios while maintaining
full functionality with graceful error handling.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2025-11-03 10:39:35 +10:00
Beingpax
73bb3e765a Remove dictionary item dependency on local Whisper model 2025-08-23 22:15:13 +05:45
Beingpax
41cfc2eca3 refactor: Centralize notification definitions 2025-08-05 21:48:11 +05:45
Beingpax
c2ac1a8510 Added output format customization for the Whisper Model 2025-05-14 11:52:26 +05:45
Beingpax
1c8285cba8 removed allwords 2025-04-06 08:03:21 +05:45
Prakash Joshi Pax
62cf41a44d
Set the default prompt for other languages as empty 2025-03-27 21:31:55 +05:45
WingCH
b35103a37f
faet: Added Cantonese support in WhisperPrompt.
Improved code readability and organization.
2025-03-27 22:27:30 +08:00
Beingpax
854af2a467 Add language change notification observer system 2025-03-23 12:15:39 +05:45
Beingpax
462b762ab6 Added support for popular languages whisper prompt 2025-03-23 11:09:37 +05:45
Beingpax
e45112cfd7 refactor: migrate dictionary functionality to WhisperPrompt 2025-03-03 16:23:21 +05:45