This guide outlines the browser requirements and compatibility considerations for running the real-time transcription application.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AssemblyAI/realtime-transcription-browser-js-example/llms.txt
Use this file to discover all available pages before exploring further.
Minimum Browser Requirements
The application requires modern browser APIs that may not be available in older browsers:Required Browser APIs
- Web Audio API - For audio processing
- AudioWorklet - For real-time audio processing in a separate thread
- WebSocket - For real-time communication with AssemblyAI
- getUserMedia API - For microphone access
- ES6+ JavaScript - Modern JavaScript features
Supported Browsers
Fully Supported
| Browser | Minimum Version | Notes |
|---|---|---|
| Chrome | 66+ | Best performance, full AudioWorklet support |
| Edge | 79+ | Chromium-based, excellent support |
| Firefox | 76+ | Good support, may have slight latency differences |
| Opera | 53+ | Chromium-based, fully compatible |
Limited Support
| Browser | Status | Issues |
|---|---|---|
| Safari (macOS) | 14.1+ | Limited AudioWorklet support, may have stability issues |
| Safari (iOS) | 14.5+ | Partial support, performance limitations |
| Samsung Internet | 12+ | Generally works but less tested |
Not Supported
- Internet Explorer (all versions)
- Legacy Edge (pre-Chromium, versions below 79)
- Chrome/Firefox versions older than specified above
- Most in-app browsers (Facebook, Instagram, etc.)
Checking Browser Compatibility
Add this code to check browser compatibility before starting:Browser-Specific Considerations
Chrome (Recommended)
Chrome provides the best experience:- Full AudioWorklet support since version 66
- Excellent WebSocket performance
- Best debugging tools for audio issues
- Most stable implementation
Firefox
Firefox works well with minor considerations:- AudioWorklet supported since version 76
- May have slightly different audio processing characteristics
- Ensure you’re using Firefox 80+ for best results
- Developer tools are excellent for debugging
Safari (macOS & iOS)
Known Issues:- AudioWorklet instability: May crash or fail to load intermittently
- Sample rate issues: Safari may not respect the requested 16000 Hz sample rate
- Permission prompts: More restrictive microphone permissions
- Background tab behavior: Audio processing may pause when tab is not active
Edge (Chromium)
Edge (version 79+) is Chromium-based and fully compatible:- Same engine as Chrome
- Excellent performance and compatibility
- Fully recommended
Mobile Browsers
Android:- Chrome for Android (96+): Good support
- Firefox for Android (96+): Good support
- Samsung Internet (12+): Generally works
- Safari (14.5+): Limited support, use with caution
- Chrome/Firefox for iOS: Use Safari’s engine, same limitations
- Recommendation: Test thoroughly on target devices
- Battery usage is higher during real-time transcription
- Background processing may be limited or unavailable
- Network switching (WiFi to cellular) may interrupt WebSocket
- Some devices may have memory constraints
Testing Your Browser
You can test browser compatibility at:Debugging Browser Issues
Enable Verbose Logging
Chrome DevTools
- Open DevTools (F12)
- Go to “Application” tab → “Service Workers”
- Check “WebSocket” frames in Network tab
- Use “Media” panel to inspect audio devices
Firefox DevTools
- Open DevTools (F12)
- Console shows WebSocket frames
- Network tab → WS filter for WebSocket traffic
- about:config → search “media” for audio settings
Feature Detection Best Practices
Always use feature detection, not browser detection:Polyfills and Fallbacks
There are no reliable polyfills for AudioWorklet. If the browser doesn’t support it, consider:- ScriptProcessorNode (deprecated): Old API, higher latency, not recommended
- Display a compatibility message: Suggest upgrading to a modern browser
- Server-side processing: Alternative architecture without browser audio processing
Recommended Setup
For best results:- Desktop: Chrome 90+, Firefox 90+, or Edge 90+
- Mobile: Chrome for Android 100+
- Avoid: Safari on both desktop and iOS if possible
- Development: Use Chrome for debugging and testing
- Production: Test on all target browsers before deployment
Getting Help
If you encounter browser-specific issues:- Check the Common Issues guide
- Verify your browser version meets minimum requirements
- Test in a different browser to isolate the issue
- Contact support@assemblyai.com with:
- Browser name and version
- Operating system
- Console error messages
- Steps to reproduce