A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.
Swift ai-agentsanthropicantigravityclaudeclaude-codecodexcursordynamic-islandgemini-cliiosiphonlinuxmacosmacos-appmenubar-appnotchopen-sourceswiftswiftuiwindows
voice: fix gender lookup shadowed by the gender parameter; label the slider callback
Claudeee0124882124
diff --git a/NotchBuddy/Sources/App/SettingsView.swift b/NotchBuddy/Sources/App/SettingsView.swiftindex dadb69cb..3db6b22e 100644--- a/NotchBuddy/Sources/App/SettingsView.swift+++ b/NotchBuddy/Sources/App/SettingsView.swift@@ -1340,10 +1340,11 @@ struct SettingsView: View {HStack(spacing: 8) {Text(String(localized: "voice.tts-pitch"))Slider(value: elevenGender == "male" ? $pitchMale : $pitchFemale,- in: 0.8...1.6, step: 0.05) { editing in- // Released: hear the new pitch right away.- if !editing { speakVoiceSample() }- }+ in: 0.8...1.6, step: 0.05,+ onEditingChanged: { editing in+ // Released: hear the new pitch right away.+ if !editing { speakVoiceSample() }+ }).frame(maxWidth: 180)}let current = VoiceSpeaker.macVoiceName(for: Locale(identifier: voiceLanguage == "fr" ? "fr-FR" : "en-US"),diff --git a/NotchBuddy/Sources/App/Voice/VoiceSpeaker.swift b/NotchBuddy/Sources/App/Voice/VoiceSpeaker.swiftindex ebca40ee..759da222 100644--- a/NotchBuddy/Sources/App/Voice/VoiceSpeaker.swift+++ b/NotchBuddy/Sources/App/Voice/VoiceSpeaker.swift@@ -144,7 +144,7 @@ final class VoiceSpeaker: NSObject, AVSpeechSynthesizerDelegate, AVAudioPlayerDe}guard !voices.isEmpty else { return AVSpeechSynthesisVoice(language: exact ?? lang) }let wanted: AVSpeechSynthesisVoiceGender = gender == "male" ? .male : .female- let ofGender = voices.filter { gender(of: $0) == wanted }+ let ofGender = voices.filter { Self.gender(of: $0) == wanted }let pool = ofGender.isEmpty ? voices : ofGenderfunc rank(_ v: AVSpeechSynthesisVoice) -> (Int, Int) {