Skip to content

Conversation

@jcampuza
Copy link
Owner

@jcampuza jcampuza commented Jan 9, 2026

Summary

  • Implement actual input device selection using Core Audio's AudioUnitSetProperty with kAudioOutputUnitProperty_CurrentDevice
  • Add input device support to AudioSampler so test recordings use the selected device
  • Track captured sample rate from input device for accurate audio processing
  • Falls back gracefully to system default if selected device is unavailable (disconnected)

Test plan

  • Open Settings > Audio tab
  • Select a specific input device (e.g., "MacBook Pro Microphone" while wearing headphones)
  • Use the "Test Microphone" feature to verify the selected device is used
  • Test regular dictation with the selected device
  • Disconnect the selected device and verify fallback to default works

🤖 Generated with Claude Code

- Implement actual input device selection using Core Audio
  - configureInputDevice() now sets device via AudioUnitSetProperty
  - getAudioDeviceID() converts device UID to AudioDeviceID
  - Falls back to system default if selected device unavailable
- Add input device support to AudioSampler for test recordings
- Track captured sample rate from input device for accurate processing
- Add CapturedAudio struct to bundle audio data with sample rate
- Update AudioProcessor for improved noise handling
- Clean up deprecated VoiceActivityDetector tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jcampuza jcampuza merged commit 2723920 into main Jan 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants