Skip to content

wrainw/WASAPI_AudioCaptureWrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

How to build this wrapper:

Create project + add NAudio:

dotnet new console -n VRScoutAudioWrapper
cd VRScoutAudioWrapper
dotnet add package NAudio --version 2.2.1


Replace Program.cs with the file above.

Build:

dotnet build -c Release


Publish self-contained (no hostfxr issues):

dotnet publish -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true


Output EXE:

bin\Release\net8.0\win-x64\publish\VRScoutAudioWrapper.exe


Copy that into Unity StreamingAssets.

Usage examples
1) List output devices (find VD vs Link)
VRScoutAudioWrapper.exe --list-devices

2) Real-time serve only (inference)
VRScoutAudioWrapper.exe --device-name "Virtual Desktop" --serve --pipe VRScoutAudioPipe --ring-seconds 5


Unity requests slices via named pipe (200ms windows, etc.).

3) Record WAV + timestamps + serve
VRScoutAudioWrapper.exe --device-name "Virtual Desktop" ^
  --out D:\ep\audio.wav --ts D:\ep\audio_ts.jsonl ^
  --serve --pipe VRScoutAudioPipe --ring-seconds 5 ^
  --stopfile D:\ep\stop.flag


Stop it (from Unity) by creating the stop file:

type nul > D:\ep\stop.flag

About

WASAPI_AudioCaptureWrapper Command line tool based on .NET 8

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages