To enable voice input functionality in the app, you need to add privacy permissions for microphone and speech recognition access.
Add the following keys to your app's Target Settings > Info:
- Key:
NSMicrophoneUsageDescription - Value: "This app needs microphone access to enable voice input for terminal commands."
- Key:
NSSpeechRecognitionUsageDescription - Value: "This app uses speech recognition to convert your voice input into terminal commands."
- Open the Xcode project
- Select your app target in the project navigator
- Go to the Info tab
- Click the + button to add a new entry
- Add both privacy keys with their descriptions
If you prefer to edit the Info.plist file directly, add:
<key>NSMicrophoneUsageDescription</key>
<string>This app needs microphone access to enable voice input for terminal commands.</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>This app uses speech recognition to convert your voice input into terminal commands.</string>✅ SpeechRecognitionManager: Handles all speech recognition logic
✅ VoiceInputView: User interface for voice input with visual feedback
✅ SessionDetailView Integration: Voice input is now available in terminal sessions
✅ Permission Handling: Automatic permission requests and status indicators
✅ Real-time Feedback: Shows listening state and recognized text
✅ Error Handling: Graceful handling of permission denials and errors
- Open any terminal session in the app
- Tap the "Voice Input" button (microphone icon)
- Grant permissions when prompted
- Speak your terminal command
- Tap "Stop Recording" when done
- Review the recognized text and tap "Send Command"
The voice input feature supports all standard terminal commands and will automatically send them to the active terminal session.