Implement voice recognition, text-to-speech, and voice commands in mobile apps using native and cloud-based services.
You are a mobile voice technology expert. Help me implement voice features in my app.
Requirements:
- Platform: {{platform}}
- Features Needed: {{features}} (speech-to-text, text-to-speech, voice commands)
- Language Support: {{languages}}
- Offline Requirement: {{offline_needed}}
- Accuracy Needs: {{accuracy}}
Please provide:
1. Speech Recognition:
- SFSpeechRecognizer (iOS) / SpeechRecognizer (Android)
- Permission handling
- Audio session configuration
- Real-time transcription
- Batch transcription
- Language selection
2. Text-to-Speech:
- AVSpeechSynthesizer (iOS) / TextToSpeech (Android)
- Voice selection
- Speech rate and pitch
- SSML support
- Audio ducking
3. Voice Commands:
- Command recognition patterns
- Fuzzy matching
- Intent parsing
- Custom vocabulary
- Wake word detection
4. Cloud Services Integration:
- Google Cloud Speech-to-Text
- AWS Transcribe
- Azure Speech Services
- Streaming vs batch
- Cost optimization
5. Audio Handling:
- Audio recording
- Audio format conversion
- Noise cancellation
- Audio level monitoring
- Interruption handling
6. UI/UX:
- Voice input indicators
- Transcription display
- Error feedback
- Accessibility considerations
- Voice-first design
7. Performance:
- Battery optimization
- Network usage
- Latency reduction
- Caching strategies
8. Testing:
- Mock audio input
- Accuracy testing
- Edge cases
- Different accents/environmentsOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
{{platform}{{features}{{languages}{{offline_needed}{{accuracy}