Skip to content

Add a setting that says a new Bluetooth volume as loud as the speech after it - #460

Open
nibarAhmed wants to merge 5 commits into
trypsynth:masterfrom
nibarAhmed:volume-bluetooth-nudge
Open

nibarAhmed wants to merge 5 commits into
trypsynth:masterfrom
nibarAhmed:volume-bluetooth-nudge

Conversation

@nibarAhmed

@nibarAhmed nibarAhmed commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Merge after #451. This branch builds on it, so until #451 is in, the diff here includes its changes too; only the last commit, "Add a setting that says a new Bluetooth volume as loud as the speech after it", is new. Once #451 merges I'll rebase this onto master.

On Bluetooth headphones that control their own volume, Android raises speech to make up for the media volume, but only works out how much when speech starts or the accessibility volume changes. So a new media volume said over speech that's still playing keeps the old level, and sounds louder or quieter than the speech after it.

This is split out of #451, as asked there, because it briefly changes the user's accessibility volume, so it's behind a new switch that's off by default: Verbosity > Match volume announcements to speech on Bluetooth (experimental). With it on:

  • When the media volume changes, Backtalk sets the accessibility volume one step down and back, which makes Android work out the level at once, and says the new level right away. It first plays 0.15 seconds of silence when none of its audio has played for 2 seconds, because Android applies the level up to 0.09 seconds after audio starts.
  • Where Android doesn't allow the nudge (with the screen off on Android 16), Backtalk stops speech, waits for its audio to go quiet, and plays the silence first.
  • Backtalk's own two volume changes aren't announced.

With it off, nothing changes from #451. differences.md describes the switch.

Testing

  • Unit tests for the nudge, the wait and the switch being off (QuietBeforeAnnouncementTest).
  • Tested with the nudge always on, before the switch was added, on a Galaxy S26 Ultra running Android 17 with the Vocalizer TTS engine, using Galaxy Buds4 Pro and Razer BlackShark V2 Pro headphones. Another user tested it as well. It still needs trying on more phones and headphones, which the switch makes possible.

Created with Claude Opus 5.5 in Claude Code, through T3 Code. Reviews by Claude Sonnet 5.5 subagents.

🤖 Generated with Claude Code

nibarAhmed and others added 4 commits November 14, 2026 12:26
TalkBack waited until the volume keys had been still for 2 seconds, and
didn't say the media volume while media played. Backtalk now says each
new level right away, says a held key's level when it's released, keeps
changes that aren't the user's quiet, such as the level headphones bring
when they connect, and nudges the accessibility volume on Bluetooth so
the announcement plays at the new level. "Backtalk off" is said at the
accessibility volume on Samsung phones and on each output.

Fixes trypsynth#295

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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