hex/src/audio
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax 1bbfc8dfa1
dictation: don't count audio before output suppression as missed opening speech (#2338) (#2514)
With Lower audio, Mute, or Pause media, a hotkey capture keeps no pre-roll
and asks for output suppression only once it passes the 300 ms hold; Lower
audio then ramps over 120 ms on its own thread. Audio still coming from the
speakers in that window was counted as speech the stream missed, so nearly
every dictation with something playing fell back to the whole clip.

The recording environment now reports the moment suppression actually
changed the output, and only when it did: Lower audio sends when the ramp
first writes its full target, from the ramp's own thread, so a late Bluetooth
readback no longer delays it; Mute when the write lands over a non-zero
volume; Pause media the latest of the player pause command being issued and
the browser pause being sent, without the browser's confirmation windows. The
report is asynchronous, so stopping or another session is never held up
behind a ramp. Nothing is reported when the effect changed nothing, was
skipped on headphones under Labs › Only on speakers, or was stopped before
the target was written.

The audio owner maps the reported moment onto the recorded timeline and adds
a 40 ms speaker-to-microphone margin; up to one resampler input buffer may
still be unprocessed, so the position can sit slightly early, which only ever
ignores less speech. The live stream's head is raised with
Command::IgnoreHead, applied before it finalizes if it arrives before Finish;
one after the finish is ignored.

Checks: a_reported_effect_raises_the_head_from_the_recorded_timeline,
media_speech_before_output_suppression_took_effect_is_not_a_lost_opening,
speech_after_the_raised_head_is_still_a_lost_opening,
a_head_raised_before_the_finish_keeps_the_stream,
a_head_raised_after_the_finish_cannot_save_the_stream,
a_guard_reports_when_the_target_is_written_not_when_the_readback_settles,
a_guard_that_changes_nothing_reports_no_moment, and
muting_an_already_silent_output_changes_nothing. Linux and Windows keep their
current head (ROADMAP). Not measured on a microphone or a device.
2026-11-23 07:09:11 -05:00
..
hex_microphone feat(voice filter): preview effects without changing your call (#1906) 2026-11-16 15:37:31 -08:00
open Labs: voice isolation for dictation on macOS and iOS (#2425) (#2429) 2026-11-22 17:00:41 -05:00
recording_environment dictation: don't count audio before output suppression as missed opening speech (#2338) (#2514) 2026-11-23 07:09:11 -05:00
recovering refactor(audio): explicit owner/recovery states and composed OS audio control (#2485) 2026-11-22 22:46:17 -08:00
browser_media.rs dictation: don't count audio before output suppression as missed opening speech (#2338) (#2514) 2026-11-23 07:09:11 -05:00
call_input.rs Meetings: record the input the call app uses (#1086) (#1091) 2026-11-03 00:14:23 -05:00
devices.rs refactor(audio): split src/audio.rs into capability modules (#2246) 2026-11-21 13:06:57 -08:00
effect_holds.rs refactor(audio): explicit owner/recovery states and composed OS audio control (#2485) 2026-11-22 22:46:17 -08:00
fixture.rs refactor(audio): explicit owner/recovery states and composed OS audio control (#2485) 2026-11-22 22:46:17 -08:00
hex_microphone.rs feat(voice filter): preview effects without changing your call (#1906) 2026-11-16 15:37:31 -08:00
idle_sleep.rs Fold audio and recording-environment modules into audio/ 2026-10-31 16:12:40 -07:00
input_format.rs Labs: voice isolation for dictation on macOS and iOS (#2425) (#2429) 2026-11-22 17:00:41 -05:00
input_level.rs Show the microphone's level on the recording toolbar and capsule (t1607) (#2217) 2026-11-21 10:04:34 -08:00
instant.rs refactor(audio): split src/audio.rs into capability modules (#2246) 2026-11-21 13:06:57 -08:00
interruption.rs windows, linux: keep a dictation press across a microphone reopen (#2098) 2026-11-20 16:58:08 -05:00
lid.rs Extract instant and lid from audio.rs 2026-10-31 18:57:51 -07:00
linger.rs fix(dictation): release the warm mic while the display sleeps or the screen is locked (#1956) 2026-11-18 02:34:47 -05:00
mix_format.rs windows: try iaudioclient3, interface activation and auto-convert wasapi paths (#1270) 2026-11-04 08:49:05 -05:00
open.rs refactor(audio): explicit owner/recovery states and composed OS audio control (#2485) 2026-11-22 22:46:17 -08:00
output_ducking.rs dictation: don't count audio before output suppression as missed opening speech (#2338) (#2514) 2026-11-23 07:09:11 -05:00
output_route.rs linux: move input_activity and input_route into input/ (#2150) 2026-11-21 01:53:36 -05:00
overloads.rs audio: keep overload reporting off CoreAudio's real-time thread (#1643) 2026-11-10 13:17:35 -05:00
recording_environment.rs dictation: don't count audio before output suppression as missed opening speech (#2338) (#2514) 2026-11-23 07:09:11 -05:00
recovering.rs refactor(audio): explicit owner/recovery states and composed OS audio control (#2485) 2026-11-22 22:46:17 -08:00
recovery.rs fix: renegotiate the mic's sample rate after digital silence (#1575) (#1693) 2026-11-11 09:30:51 -05:00
routes.rs refactor(audio): split src/audio.rs into capability modules (#2246) 2026-11-21 13:06:57 -08:00
stream.rs refactor(audio): explicit owner/recovery states and composed OS audio control (#2485) 2026-11-22 22:46:17 -08:00
system_idle.rs fix(dictation): release the warm mic while the display sleeps or the screen is locked (#1956) 2026-11-18 02:34:47 -05:00
transport.rs linux: move input_activity and input_route into input/ (#2150) 2026-11-21 01:53:36 -05:00
voice_filter.rs Fold audio and recording-environment modules into audio/ 2026-10-31 16:12:40 -07:00
voice_processing.rs Labs: voice isolation for dictation on macOS and iOS (#2425) (#2429) 2026-11-22 17:00:41 -05:00
wasapi_capture.rs Labs: voice isolation for dictation on macOS and iOS (#2425) (#2429) 2026-11-22 17:00:41 -05:00