Turn your Android phone into a wireless microphone and speaker for your PC!
- Phone Mic → PC Speakers: Your phone's microphone sends audio to your PC speakers
- PC Mic → Phone Speakers: Your PC's microphone sends audio to your phone speakers
- Works over WiFi (wireless connection)
- Low latency audio streaming
- Simple interface
- Android phone (Android 5.0 or higher)
- Android Studio to build the app
- Microphone permission
- Python 3.7 or higher
- Windows, Mac, or Linux
- Phone and PC on the same WiFi network
-
Install Python (if not already installed):
- Download from https://www.python.org/downloads/
- During installation, check "Add Python to PATH"
-
Install required library:
pip install pyaudioIf pyaudio fails to install:
- Windows: Download wheel file from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
- Mac:
brew install portaudio, thenpip install pyaudio - Linux:
sudo apt-get install portaudio19-dev, thenpip install pyaudio
- Run the server:
python pc_server.py- Note your PC's IP address - the server will display it. Example:
192.168.1.100
-
Open Android Studio
- Download from https://developer.android.com/studio if needed
-
Open the project:
- File → Open → Select the
PhoneSpeakerMicfolder
- File → Open → Select the
-
Wait for Gradle sync to complete
-
Connect your Android phone:
- Enable Developer Options on your phone (tap Build Number 7 times in Settings → About)
- Enable USB Debugging
- Connect via USB cable
-
Build and install:
- Click the green "Run" button (
▶️ ) in Android Studio - Or use:
./gradlew installDebug
- Click the green "Run" button (
-
Make sure phone and PC are on the same WiFi network
-
On PC: Run
python pc_server.py- Note the IP address displayed
-
On Phone:
- Open the "Phone Speaker Mic" app
- Enter your PC's IP address (e.g.,
192.168.1.100) - Tap "Connect to PC"
- Grant microphone permission when prompted
-
You're connected!
- Speak into your phone → sound comes out PC speakers
- Speak into PC mic → sound comes out phone speakers
- ✅ Ensure both devices are on the same WiFi network
- ✅ Check firewall settings (allow port 5000)
- ✅ Verify IP address is correct
- ✅ Make sure PC server is running before connecting
- ✅ Check volume on both devices
- ✅ Grant microphone permission on phone
- ✅ Check PC audio settings (correct input/output devices)
- ✅ Move closer to WiFi router
- ✅ Close other network-intensive applications
- ✅ Ensure stable WiFi connection
If connection fails, allow Python through firewall:
- Windows Security → Firewall & network protection
- Allow an app through firewall
- Find Python and check both Private and Public
- Or run:
python -m http.server 5000to test if port is blocked
Every time you want to use it:
- On PC: Open terminal/command prompt and run:
python pc_server.py-
On Phone: Open the app and connect using your PC's IP
-
Keep both running - you can now use your phone as PC audio!
- Protocol: TCP socket connection
- Port: 5000
- Audio Format: PCM 16-bit, 44.1kHz, Mono
- Latency: ~100-200ms depending on network
To create an installable APK without Android Studio:
cd PhoneSpeakerMic
./gradlew assembleDebugThe APK will be in: app/build/outputs/apk/debug/app-debug.apk
Transfer this file to your phone and install it.
- Keep the app running in foreground for best performance
- Battery usage is moderate during active streaming
- Works great for video calls, gaming, or any PC audio needs
- Latency is good for most uses but not ideal for music production
- May disconnect if phone screen locks (keep screen on during use)
- Some Android devices may have audio sync issues
- First connection might take a few seconds
- Use a phone stand to keep your phone positioned as a microphone
- Adjust PC/phone volume for best quality
- Test connection before important calls
- Keep phone plugged in for extended use
If you encounter issues:
- Check the troubleshooting section above
- Verify all requirements are met
- Try restarting both the app and server
- Check your network connection
This project is licensed under the MIT License - see the LICENSE file for details.
Enjoy using your phone as a PC microphone and speaker! 🎤🔊