Seeing where a sound comes from
AvailableC++
This is a demonstration that finds the direction a sound comes from with a microphone array of 16 microphones, and overlays it in color on the INFINICAM GbE-2 image.
When a short, loud sound occurs, such as a hand clap or a finger snap, the app replays the 0.5 seconds before and after it (1,000 frames) in 1,000 fps slow motion. You can look back at what was happening, and where in the image, at the moment of the sound, together with the color showing its direction. The replayed scene can be saved as a video (MP4) and a sound file (WAV).
This clip was cut from the video (MP4) the app saved after a hand clap, covering 0.2 seconds before and after the sound (400 frames). At the moment of the sound, color appears over the hands. The bottom of the screen shows the sound waveform, and the yellow line marks the current frame.
What you can do
Section titled “What you can do”| Situation | What you can do |
|---|---|
| Live view | Overlay the direction of sound in color on the image, with a cross at the strongest point |
| When a loud sound occurs | Replay the 0.5 seconds before and after it (1,000 frames) in slow motion, repeatedly. At the moment of the sound, the direction is overlaid in color, and the waveform is shown at the bottom |
| During slow-motion replay | Change the speed, step 1 ms at a time, save as MP4 and WAV, move on to the next recording |

Even when you clap a few meters away from the table, you can look back at the moments before and after the sound in slow motion, together with the color showing where the sound came from.
What you need
Section titled “What you need”| Item | Used on this page | Notes |
|---|---|---|
| Camera | INFINICAM GbE-2 | Used at 800 × 600, 1,000 fps |
| Lens | Computar M0814-MP2 (8 mm) | Its angle of view keeps the microphone array board out of the image |
| Microphone array | miniDSP UMA-16 v2 | 16 MEMS microphones (4 × 4, 42 mm spacing). Connects over USB |
| Laptop PC | ASUS Zenbook 14 (Core Ultra 7 255H, Windows 11 Pro) | Uses one USB port |
| LAN adapter | I-O DATA ET10G-US3C | Wired LAN adapter connected over USB (10 Gbps). Supports jumbo packets |
| Power for the laptop | AC adapter, or a USB PD mobile battery | Required (see the caution below) |
Connections
Section titled “Connections”- Place the GbE-2 behind the center hole of the UMA-16, with the lens looking forward through the hole. This lines up the center of the microphone array with the center of the camera, so the direction of sound can be overlaid directly on the image.
- Connect the GbE-2 and the laptop with a wired LAN cable. The camera’s IP address is 192.168.0.10; set the laptop’s LAN adapter to 192.168.0.x (subnet mask 255.255.255.0).
- Connect the UMA-16 to a USB port on the laptop.

Preparing the software
Section titled “Preparing the software”-
Install the miniDSP driver (before connecting the UMA-16)
Get the Windows driver for the UMA-16 v2 from the miniDSP website (follow the instructions that come with the product), and install it as an administrator.
-
Install the Visual C++ Redistributable
Install the Visual C++ Redistributable (x64).
-
Place the app
Extract the AcousticCam ZIP and place the
binfolder inside it anywhere you like (for example,C:\demo\AcousticCam). Logs go to thelogsfolder, and saved videos and sounds go to therecordingsfolder, so choose a location you can write to.
How to use
Section titled “How to use”-
Start AcousticCam.exe
-
Make sounds in front of the camera
Move a phone around while it plays music, clap your hands, and so on. When the sound is louder than the threshold (the red line on the bar at the bottom of the screen, −55 dBFS by default), color appears in the direction of the sound, with a cross at the strongest point. If the image is flipped left-right or upside down, press
M(left-right) orV(up-down). -
Make a short, loud sound
Clap your hands, snap your fingers, or tap the desk, and the app replays the 0.5 seconds before and after it at 1/10 speed, repeatedly. The bottom of the screen shows the waveform: the red line is the moment of the sound, and the yellow line is the current playback position.
-
Save or move on
During replay, press
Sto save, orNorEnterto go back to live view for the next recording.
What is saved
Section titled “What is saved”When you press S during replay, two files named after the recording date and time are saved in the recordings\ folder of the app (for example, AcousticCam_20261125_113504.mp4 and .wav).
| File | Contents |
|---|---|
.mp4 |
The 1,000 frames written at 30 fps (slow motion at 1/33 speed), including the direction colors and the waveform |
.wav |
The sound from 0.5 seconds before to 0.5 seconds after (the average of the 16 microphones, amplified because it is quiet) |
Saving takes a few seconds (progress is shown at the bottom of the screen). You can keep using the app while it saves.
Keys (live view)
Section titled “Keys (live view)”| Key | Action |
|---|---|
Q |
Quit (closing the window with × also quits) |
F |
Full screen |
M / V |
Flip left-right / up-down |
+ / - |
Raise / lower the threshold |
[ / ] |
Weaken / strengthen the smoothing |
A |
Turn slow-motion replay on loud sounds on or off |
T |
Replay the moments around now in slow motion |
R |
Replay again |
S / P |
Save the screen |
Keys (slow-motion replay)
Section titled “Keys (slow-motion replay)”| Key | Action |
|---|---|
Space |
Pause |
← → |
Step back or forward 1 ms |
1–5 |
Speed (1×, 1/10, 1/30, 1/100, 1/1000) |
S |
Save the video and sound |
N / Enter |
Next recording (back to live view) |
, . |
Shift the video by 1 ms when sound and video look out of sync |
P |
Save the screen |
Command-line options
Section titled “Command-line options”| Option | Meaning |
|---|---|
--fullscreen |
Open in full screen |
--shutter N |
Denominator of the shutter speed (default 1000 = 1/1,000 s) |
--threshold DB |
Threshold (default −55 dBFS) |
How it works
Section titled “How it works”UMA-16 ──(16 ch, 48 kHz)──▶ find the direction of sound (SRP-PHAT, 40 × 30 grid) ──┐ └▶ watch the loudness every 5 ms ─(loud sound)─┐ │GbE-2 ──(1,000 fps, compressed)──▶ keep the last 2.1 s as compressed data │ │ ├ live view (decode up to 30 per second) ◀─┼────────────┘ overlay color └ cut out 0.5 s before and after (1,000 frames) ◀┘ └ decode the 1,000 frames, replay in slow motion and save- Direction of sound: the app finds the direction from the tiny differences in the time the sound takes to reach each of the 16 microphones (a method called SRP-PHAT, 800–10,000 Hz). It divides the camera’s field of view into a 40 × 30 grid, calculates how strongly sound is coming from each cell, and turns that into color.
- Detecting a loud sound: every 5 ms, the app checks the loudness and decides that “a sound occurred” when it rises more than 15 dB above the usual level.
- 0.5 seconds before and after: the GbE-2 images from the last 2.1 seconds are kept as compressed data. When a sound occurs, the 0.5 seconds before and after it (1,000 frames) are cut out and decoded only then.
- Matching the times of sound and video: the time of the sound comes from the Windows audio timestamps (QPC), and the time of the video from the camera’s frame numbers; the two are aligned.
In our test, no frames were dropped from the 1,000 fps video, even while the direction of sound was being calculated.
Source code
Section titled “Source code”The executables and the source code are packed into one ZIP. The miniDSP driver is not included; get it from miniDSP.
Download AcousticCam (2026-11-25, about 41 MB)| Folder | Contents |
|---|---|
bin |
Ready-to-run executables (AcousticCam.exe, INFINICAM SDK DLLs, OpenCV 5 DLLs) |
source |
Source code (AcousticCam.cpp, a single file) and the Visual Studio project |
The README in the ZIP is in Japanese; this page covers the same content in English.
To build it yourself, open AcousticCam.slnx in the source folder with Visual Studio and build Release / x64. The project assumes the INFINICAM SDK is in C:\infinicam_sdk and OpenCV 5 is in C:\opencv (the same locations as in Setting up a C/C++ development environment). If you use a lens other than 8 mm, change FOCAL_PX in AcousticCam.cpp (the lens focal length ÷ the pixel size of 6.6 µm).
- C++ (Visual Studio 2022 or later, x64, Release). Uses the INFINICAM SDK (PUCLIB) and OpenCV 5.
- The sound is received as 16 channels at once through Windows WASAPI (shared mode).
- To save MP4 files,
opencv_videoio_ffmpeg500_64.dllmust be in the same folder as the exe.
- Power the laptop from the AC adapter or a USB PD mobile battery. On battery alone, frames are dropped.
- Always install the miniDSP driver before connecting the UMA-16.
- The direction is intended for sounds coming from in front of the microphone array (within the camera’s field of view). Where sound reflects off walls and other surfaces, color may also appear in the direction of the reflection.
