The error "All translation providers failed" means the API keys aren't configured properly. Let's fix this step by step.
- Go to https://platform.openai.com/
- Sign up or log in
- Go to "API Keys" section
- Click "Create new secret key"
- Copy the key (starts with
sk-)
- Go to https://elevenlabs.io/
- Sign up or log in
- Go to your profile settings
- Find "API Key" section
- Copy the key (32-character hex string)
-
Launch the app:
npm run dev:simple
-
Open Settings:
- Click the "⚙️ Settings" button in the app
-
Enter API Keys:
- Paste your OpenAI API key in the first field
- Paste your ElevenLabs API key in the second field
- Click "Save Settings"
-
Verify Configuration:
- The debug console should show "API keys configured"
- If not, check the console for error messages
-
Select Devices:
- Choose a microphone from the dropdown
- Select a target language (e.g., Spanish, Russian)
- Pick a voice for output
-
Test Translation:
- Click "🧪 Test Translation"
- You should hear translated audio in your headphones
- Check debug console for detailed logs
-
Test Microphone:
- Click "🎧 Hear Yourself"
- Speak for 3 seconds, then hear playback
-
Test Virtual Microphone:
- Click "📢 Test Virtual Mic"
- This sends audio to virtual microphone for other apps
- Cause: API keys not configured or invalid
- Solution:
- Check API keys in settings
- Verify keys are correct (no extra spaces)
- Check API account has credits/quota
- Cause: Browser audio permissions or codec issues
- Solution:
- Allow microphone access when prompted
- Check system audio settings
- Try different browser if using web version
- Enable Debug Console: Click "Show Debug Console" at bottom
- Look for specific errors: API key validation, network issues, etc.
- Check API quotas: Ensure you have credits in OpenAI/ElevenLabs accounts
When working correctly, you should see:
[Time] API keys configured
[Time] Testing translation pipeline...
[Time] Translating "Hello, this is a test" to es
[Time] Translation result: "Hola, esto es una prueba"
[Time] Synthesizing speech with voice: adam
[Time] TTS synthesis complete: 45678 bytes
[Time] Audio playback initiated
[Time] ✅ Test completed successfully
If issues persist, run the debug script:
node debug-api-keys.jsThis will show exactly what's happening with your configuration.
- Restart the app after configuring API keys
- Check internet connection for API calls
- Verify API account status (not suspended, has credits)
- Try different voice if TTS fails
- Check browser permissions for microphone access
Once API keys are properly configured, the translation should work perfectly! 🎉