DualStream is a local web application that allows you to record your laptop screen or webcam while using your Android phone as a high-quality microphone. It uses WebRTC to stream audio from your phone to your computer over a USB connection with zero latency.
- Node.js installed on your computer.
- An Android phone and a USB cable.
- ADB (Android Debug Bridge) installed on your computer.
- On Linux: sudo apt install adb
- On Mac: brew install android-platform-tools
- On Windows: Download from the Android Developer website.
Run the following command in the root of the project to install the required Node.js packages: npm install
- Open your phone Settings.
- Go to "About phone" and tap "Build number" 7 times to enable Developer Options.
- Go back to Settings, find "Developer options", and turn on "USB debugging".
- Plug your phone into your computer via USB. Select "Charging only" or "File Transfer".
- A prompt will appear on your phone asking to "Allow USB debugging". Check "Always allow" and tap OK.
To allow your phone to securely access the local server on your computer, run this command in your terminal: adb reverse tcp:3000 tcp:3000
Run the following command to start the application: node server.js The server will start running at http://localhost:3000.
- On your computer: Open a web browser and go to http://localhost:3000. Select "Record Camera" or "Record Screen". Allow the browser to access your camera/screen.
- On your phone: Open Google Chrome and go to http://localhost:3000. Select "Phone (High-Q Mic)". Allow the browser to access your microphone.
Once both devices are connected, the status on your computer will change to "Phone Connected". Click "Start Recording" on your computer. When you are finished, click "Stop Recording" and the synchronized video file will automatically download to your computer.