A .NET command-line tool that simultaneously records audio from both microphone input and system audio output (speaker).
- Concurrent recording from microphone and system audio
- Automatic silence detection and handling for speaker output
- Timestamped WAV file output
- Simple command-line interface
- .NET 8.0 SDK
- Windows OS (required for WASAPI loopback capture)
- Audio input device (microphone)
-
Clone this repository:
git clone https://github.com/yourusername/recorder.git -
Navigate to the project directory:
cd recorder -
Build the project:
dotnet build
Run the application:
dotnet run
The program will:
- Start recording from both microphone and system audio
- Create two WAV files with timestamps (e.g.,
20240315_143022.mic.wavand20240315_143022.speaker.wav) - Continue recording until any key is pressed
- Save both recordings automatically
{timestamp}.mic.wav- Recording from microphone input{timestamp}.speaker.wav- Recording from system audio output
- NAudio (2.2.1) - .NET audio library
- Uses WASAPI loopback capture for system audio recording
- Implements silence detection and handling for speaker output
- Utilizes async/await pattern for non-blocking I/O operations