Skip to content

Treat a track that never rises above −60 dBFS as a silent side, instead of letting the engine invent text over it - #78

Open
AndrewYakovlev wants to merge 1 commit into
gsamat:masterfrom
AndrewYakovlev:fix/skip-digitally-silent-track
Open

AndrewYakovlev wants to merge 1 commit into
gsamat:masterfrom
AndrewYakovlev:fix/skip-digitally-silent-track

Conversation

@AndrewYakovlev

Copy link
Copy Markdown

Addresses #69 on macOS.

A system tap that delivers nothing but zeros reaches the engine as a long silent file. Whisper then writes "Thank you." once per 30-second window. TranscriptionInputs.perTrack already treats a track with no frames as a silent side. This change applies the same rule to a track whose samples all stay below −60 dBFS. The scan stops at the first louder sample, so a track with sound in it costs one read. A track that cannot be read is not called silent; the engine's own error handles it, as before.

Scope:

Tests in EmptyTrackTests: a track of zeros is not sent to the engine, and a quiet tone at about −46 dBFS still is. The full swift test run passes, except the locale-dependent MeetingLanguagesTests case that fails on master too.

🤖 Generated with Claude Code

… engine is not handed a muted system tap to invent "Thank you." over (gsamat#69).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant