Skip to content

Cold audio device: 5.3s open latency then 53ms of audio, session fails later with an unrelated error #1298

Duplicate

Description

@EmmyBeckmann

Environment: OpenLess 2.0.2-Beta.3+build.20261026-c9f49c60, macOS 27.2 (26B123) arm64, USB audio input device.

Steps

  1. Cold start the app.
  2. First dictation of the session: hold the hotkey and speak for ~6 seconds.

Expected

Either warm the device on hotkey-down before the user starts speaking, or fail fast with a clear "microphone did not start" message.

Actual

The device takes ~5.3 s to open, then the stream is dropped ~70 ms later. The saved WAV is 0.053 s long. That empty file is sent to ASR, which returns 0 characters, and the session fails several seconds later with an unrelated polish error. The user sees nothing at all.

The second press in the same session opened the device in 43 ms, so this is a cold-start path only.

Evidence

[audio-startup] phase=device_selected duration_us=5256253 since_open_us=5256253
[audio-startup] phase=first_raw_pcm since_open_us=5431668
[recorder] cpal Stream dropped (mic released)        # ~70 ms later
saved wav: 1 ch, 16000 Hz, Int16, duration 0.053375 s
[asr] … elapsed_ms=5970 chars=0

Suggestion

If capture yields < ~200 ms of audio, abort immediately instead of calling ASR with an empty file.

Activity

  1. appergb commented on Nov 30, 2026

    @appergb
    Collaborator

    与 #1439 的 B 类(冷启动录音器 0 帧)高度相关,先在那里合并跟踪:两者都是冷启动首条听写采不到可用音频。差异点:本 issue 是设备打开耗时 ~5.3s 后流被丢弃、落盘了 0.053s 的 WAV;#1439-B 是录音器 111–984ms 掉线、一帧未采且无 WAV 落盘。先在 #1439 统一排查,若确认不同根因再拆回。

  2. added
    bug
    macOS
    area:recording
    on Nov 30, 2026
  3. H-Chris233 commented on Dec 2, 2026

    @H-Chris233
    Collaborator

    并入 #1439 的 B 类统一跟踪。本报告中设备打开耗时约 5.3 秒,最终只落盘 53 毫秒的音频;#1439-B 的录音器在 111–984 毫秒内掉线,未采到帧或生成 WAV。若排查确认根因不同,可重新打开本条。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:recordingbugmacOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions