FluidVoice icon indicating copy to clipboard operation
FluidVoice copied to clipboard

[BUG] FluidMeet: call audio splits into thousands of 40 ms chunks and most are discarded when the output device runs at 44.1 kHz

Open Miyou opened this issue 1 month ago • 7 comments

Describe the bug

Recording a Google Meet call in Chrome with MacBook Pro Speakers set to 44.1 kHz, the application-audio track's presentation timestamps move backwards on almost every buffer. Each backwards jump rotates the chunk (MeetingAudioChunkWriter), so the track becomes thousands of ~40 ms chunks. With only two finalization slots, most chunks then fail with "Audio chunk finalization was saturated; the chunk was closed without blocking capture." That message flickers in the FluidMeet window. The live transcript looks fine, but the saved audio, which the final transcript is built from, is mostly gone.

Reproduction steps

  1. In Audio MIDI Setup, set MacBook Pro Speakers to 44,100 Hz.
  2. Join a Google Meet call in Chrome and record it with FluidMeet (Online call → Google Chrome).
  3. Watch the chunk ledger or session events after a minute.

Expected behavior

About one chunk per minute, as with 48 kHz output or AirPods.

Actual behavior

Meeting Call audio chunks Failed Audio kept
Oct 26, 15 min 8,785 6,959 165 of 917 s
Oct 26, 33 min 13,338 11,136 360 of 2,015 s
Nov 2 6,664 5,090 (not measured)

8,784 of 8,785 chunks carry "Presentation timestamp moved backwards". The final transcript contained only fragments of the remote side, or nothing at all.

After switching the speakers to 48 kHz, a fresh recording of the same call produced normal chunks with 0 failures, and two full meetings since (24 and 44 minutes) were also clean: 42 and 46 chunks of about a minute, 0 failures.

Two possible fixes: treat small, repeated backwards jumps as jitter and re-anchor without rotating the chunk; and avoid discarding audio when finalization is saturated.

App Version

1.6.12

macOS Version

15.7.4 (24G517)

Architecture

Apple Silicon (Mac14,10)

Miyou avatar Nov 02 '26 17:11 Miyou

wanna check latest beta and see if it works better?

altic-dev avatar Nov 02 '26 19:11 altic-dev

Thanks! I retested with a build from current main (same capture and chunk-writer code as 1.6.13-beta.2):

  • #1275: With the system default input set to a silent virtual device (BlackHole 2ch) and "MacBook Pro Microphone" selected in the picker, the microphone track now records normally at 48 kHz. I think "Keep the chosen microphone when opening the picker" (#1265) fixed the case I hit.
  • #1276: Still happens, and I've found a better trigger than the 44.1 kHz output. In an hour-long Google Meet call today (AirPods at 48 kHz as output), recording was clean for 15 minutes. Then FluidMeet logged microphoneChanged: "Capture moved to the settled microphone BlackHole 2ch". From that second on:
    • the microphone track was silent for the rest of the call, because it had moved to a virtual loopback device;
    • the Chrome track broke into ~40 ms chunks: 15,519 chunks, 12,969 failed with "finalization was saturated".

So the fragmentation seems to start when capture is reconfigured mid-meeting, not because of the output sample rate itself. The 44.1 kHz cases may have been the same thing triggered by a device change. Two suggestions: don't auto-switch to virtual loopback devices (BlackHole, Background Music, Teams Audio) as a "settled microphone", and keep the application-audio timeline intact across a capture restart.

Miyou avatar Nov 04 '26 15:11 Miyou

This issue has been marked stale because it has had no activity for 7 days. It will be closed in 3 days if there is no further activity. Add the keep-open or pinned label to prevent automatic closure.

github-actions[bot] avatar Nov 12 '26 00:11 github-actions[bot]

Still relevant, I think. 9 recent meetings with no mid-meeting device change were clean (0 failed chunks), which fits the capture-restart trigger above.

From reading the code, the mechanism seems to be in MeetingAudioChunkWriter: after the capture is reconfigured, the application-audio presentation timestamps keep landing just behind the previous chunk end, every backwards step counts as a clock boundary and rotates the chunk (~40 ms chunks), and with two finalizationSlots most of those chunks are closed as "finalization was saturated" and their audio is dropped.

Two possible fixes:

  • Re-anchor small, repeated backwards steps after a reconfiguration without rotating the chunk.
  • Don't drop audio when finalization is saturated.

Separately, I'm running a fork that never falls back to a virtual device (BlackHole, Background Music, Teams Audio, aggregates) as the "settled microphone"; it uses the device's CoreAudio transport type. Happy to open a PR for either if you're interested.

Miyou avatar Nov 12 '26 07:11 Miyou

I think core audio is very sensitive to changes and it could cause problems in other devices. I'm not sure what is the best way to deal with this right now.

This feels something I'm not able to reproduce on my side, so I don't know how to make a fix. But if you're willing to work on this, we can see how to patch it up without touching core audio and if there is any other patch we can do to make it work

Let me know what you think. I tried, but I don't think I'll be able to fix it for the next update, but we can keep working on it to see if we can find a solution here

altic-dev avatar Nov 13 '26 07:11 altic-dev

Also, make sure your microphone priority is selected properly in the settings

image

Not sure if this is directly related, but ordering here could be considered as well while finding the next fallback mic

altic-dev avatar Nov 13 '26 07:11 altic-dev

This issue has been marked stale because it has had no activity for 7 days. It will be closed in 3 days if there is no further activity. Add the keep-open or pinned label to prevent automatic closure.

github-actions[bot] avatar Nov 21 '26 00:11 github-actions[bot]