The implemented 7.77 default is Sensitive. Native frame activity has a minimum floor of 0.0015; lowering configured RMS below that floor does not increase native sensitivity.
Where to change settings#
Open More → Configuration → Audio and listening or Local music detection. Length and interval apply after Save; stop before editing other recording settings. Debug/Diagnostics and the current Windows log remain usable while listening. Settings are stored per browser/WebView profile; do not assume signing in synchronizes microphone tuning.
Audio and listening controls#
| Setting | Default / UI range | Meaning and tradeoff |
|---|---|---|
| Sample interval | 120 s; 15–3,600 s | Target time between cycle starts. Shorter intervals improve opportunity to catch songs but increase captures and possible API calls. Must be at least sample length + 2 s. |
| Sample length | 10 s; 5–25 s | Duration recorded per sample. Longer clips provide more audio but increase capture time and payload. Native internal safety bounds are 3–30 s, distinct from the UI range. |
| Microphone gain | 2×; 1–10× in 0.5 steps | Software amplitude multiplier. It amplifies noise too and can clip peaks; it cannot repair a weak microphone or recover detail already lost. |
| Minimum RMS | 0.0001; 0.00001–0.1 | Normalized root-mean-square amplitude floor. Lower values admit quieter signals; higher values reject quiet audio. RMS is not a song-match confidence score. |
| Store location | On | Attach available coordinates/address/place context. This changes metadata capture, not microphone sensitivity. |
| Business/building distance | 200 ft; 25–1,000 ft | Radius for nearby naming choices. Increasing it adds possible places and ambiguity; it does not increase GPS accuracy. |
Cadence example#
With the 120-second interval and 10-second sample, the app aims for about 30 sample starts and five minutes of captured audio per hour. These are nominal values before processing, microphone retries and interruptions. The API-call count can be lower because native music screening rejects samples. Long processing/recovery can delay the next cycle; the interval is not a strict scheduler guarantee.
Related documentation#
App overview and functionality
Location service: design, usage and artifacts
Microphone settings and tuning
Local music detection: presets and controls#
Windows uses a local heuristic to decide whether a recorded sample is worth sending to recognition. Its confidence describes music presence, not the probability that a returned song is correct. Browser capture does not run this native NAudio detector.
| Control | Sensitive | Balanced | Conservative |
|---|---|---|---|
| Active audio required | 38% | 48% | 62% |
| Tonal frames required | 24% | 30% | 42% |
| Broadband tonal required | 8% | 12% | 24% |
| Continuous tonal run | 2% | 3% | 8% |
| Reject as speech at | 65% | 52% | 38% |
| API-call confidence | 38% | 46% | 62% |
The implemented 7.77 default and Defaults button select Sensitive. Existing saved choices override defaults. Some older README text says Balanced; the UI code and native context defaults are authoritative for this guide.
| Control and allowed range | What it measures / changing it |
|---|---|
| Active audio required: 20–90% | Fraction of analyzed frames exceeding the activity floor. Lower accepts audio with more quiet gaps; higher requires sound through more of the clip. |
| Tonal frames required: 10–80% | Fraction of active frames meeting tonal spectrum tests. Lower is permissive; higher demands more pitch-like structure. |
| Broadband tonal required: 3–60% | Fraction of active frames that are tonal and also carry bass, upper-frequency and outside-voice-band energy. Lower can admit thin/distant music but more speech-like audio. |
| Continuous tonal run: 1–25% | Longest uninterrupted qualifying broadband-tonal run divided by all analyzed frames. Higher rejects brief/intermittent music-like bursts. This is a frame ratio, not an exact duration slider. |
| Reject as speech at: 20–90% | Speech-like active-frame threshold used with weak broadband music evidence. Higher is more permissive. Crossing it alone does not always reject a sample. |
| API-call confidence: 25–85% | Minimum combined heuristic confidence required in addition to all other music tests. Lower allows more candidates; it cannot bypass a failed activity, tonal or spectral condition. |
Editing a percentage selects Custom. Preset selection also changes internal spectral thresholds and speech penalties; the six visible numbers do not fully reproduce every preset. Custom follows the detector’s default spectral branch (the same branch used by Balanced).
Gain, RMS and the decision pipeline#
What happens to a Windows recording#
- Capture from the Windows default recording device at 44.1 kHz, mono, 16-bit PCM. The app does not expose a native per-device microphone selector.
- Apply software gain, clamp samples to the PCM range, compute RMS and build the WAV. Excess gain can flatten peaks before local analysis.
- Analyze up to 480 frames with 2,048-point FFTs spread across the clip. A frame is active only above max(0.0015, configured minimum RMS).
- Require activity, tonal/broadband evidence, continuity, bass/upper-frequency evidence, spectral peaks and confidence, while rejecting speech-dominated audio.
- Only passing native samples go to recognition. Record the reason and metrics in Diagnostics regardless of match success.
RMS has two different practical effects#
In the browser loop, the configured minimum RMS directly rejects quiet samples before submission. In the native detector, the frame activity floor has a hard minimum of 0.0015. Therefore lowering the default 0.0001 RMS setting further does not lower the native frame floor. Raising the setting above 0.0015 makes native activity screening stricter.
Illustration: normalized RMS 0.001 is approximately −60 dBFS; 0.01 is approximately −40 dBFS. These are digital levels relative to full scale, not measured sound pressure in the room. Changing gain changes these digital levels. Room distance, hardware gain, background noise and clipping all matter.
Metrics in Diagnostics#
| Metric | Interpretation |
|---|---|
| RMS / active ratio | Overall analyzed amplitude / fraction of analyzed frames above the floor. |
| Tonal / broadband ratios | Qualifying frames divided by active frames. A low broadband ratio often means energy is concentrated in speech-like frequencies. |
| Continuous ratio | Longest broadband-tonal run divided by all analyzed frames. |
| Speech ratio / speech dominated | Speech-like fraction and the final combined rejection decision. |
| Flatness / crest / centroid | Noise-like spread / peak strength / spectral center of energy. These support the heuristic rather than identify a song. |
| Confidence / reason / API called | Combined music score, human-readable decision, and whether recognition was attempted. A local pass can still return no song. |
Preset internals include a 180–4,000 Hz voice band, 60–180 Hz bass region and 4,000–10,000 Hz upper-presence region. These are heuristic analysis ranges; there are no separate equalizer controls for them in the configuration UI.
Tuning and troubleshooting#
A repeatable tuning workflow#
- Start with Sensitive and the default 10-second sample. Play representative music at normal room volume and include quiet/no-music periods.
- Read several Diagnostics entries. Separate capture failures, local rejection, API failures and an API call with no match. Each needs a different fix.
- For quiet capture, first check Windows microphone access/default device and physical placement. Increase gain modestly only if the waveform is not clipping.
- If local rejection persists, inspect the specific reason. Lower one relevant requirement at a time, or increase the speech threshold for excessive speech rejection. Restart after saving.
- If speech/noise triggers too many calls, try Balanced or Conservative, or increase targeted requirements. Compare API-call count and real song yield over similar listening periods.
| Observed behavior | Likely next check |
|---|---|
| No captures / waiting for microphone | Windows privacy permission, default input, device connection and exclusive use by another application. Native recovery retries every two seconds. |
| Low activity despite lowering RMS | Native 0.0015 minimum frame floor; distance, hardware input level and gain. A smaller configured RMS below that floor changes nothing locally. |
| “Too narrowly inside speech band” | Broadband requirement and actual microphone frequency response. More gain alone may not add the missing frequency content. |
| Music rejected as speech | Try Sensitive; review broadband and speech metrics. Vocals, TV speech over music or narrow-band audio can confuse the heuristic. |
| Confidence passes, but API skipped | Other required local tests may still fail. Read the decision reason rather than confidence alone. |
| API called, no identification | Clip content/length, noise/distortion, upstream response and catalog match. Lowering the gate cannot guarantee recognition. |
| Calls succeed, location wrong | Location permission, coordinates, place radius and imported coverage. Microphone gain has no effect on place selection. |
Source and related artifacts#
Verified against index.html, app.js and music-detection-settings.js under web-aws-source/web; MainWindow.xaml.cs, NativeListeningService.cs and MusicPresenceDetector.cs under src/Heard.Windows. Preset defaults and UI bounds are implementation values from 7.77, not a new app change.
Browser listening recovery
While listening is active, heard monitors audio interruptions and missing samples and attempts to reconnect automatically. Network calls have deadlines and transient failures retry. Stop cancels capture and pending recovery. If listening unexpectedly stops, open Configuration → Debug → Save listening diagnostics to retain the recent stop and interruption reasons. Browser permission rules can still require a new tap on Start.
Background music amid conversation
Enable this optional setting under Configuration → Audio and listening, then save and restart listening. Later timing changes can be saved while listening. It uses your chosen sample length and interval; Windows also uses a more speech-tolerant local music check. A 20–25 second sample is suggested, not forced. It does not remove voices and can increase recognition calls, data and battery use. Turning it off restores your saved timing and sensitivity settings.
Speech can remain in temporary audio sent for recognition. Read behavior, limitations and tuning tips.
Saving sample timing
Sample length (5–25 seconds) and interval (15–3,600 seconds, at least length + 2) can be saved while listening. A current recording finishes first; the next sample and its pending countdown use the saved values. Conversation assist does not override the timing. Read timing behavior.