Skip to content

fix(audio): fix beep/prepareBeep swap, raise default volume, use STREAM_ALARM for TTS#30

Merged
nbucic merged 2 commits into
masterfrom
claude/android-interval-timer-app-JYhZc
Jul 18, 2026
Merged

fix(audio): fix beep/prepareBeep swap, raise default volume, use STREAM_ALARM for TTS#30
nbucic merged 2 commits into
masterfrom
claude/android-interval-timer-app-JYhZc

Conversation

@nbucic

@nbucic nbucic commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Swap beep()/prepareBeep(): PREPARE phase ticks with a single beep each second; lead-in countdown (3-2-1 before phase end) fires the 3-rapid-beep sequence
  • Pass volume to TTS: audioTTS.speak(text, this.volume) so voice mode respects the saved volume setting
  • Raise default volume 0.81.0: in audio.js, app.js (both Alpine components), app/Livewire/Settings.php, and app/Models/Setting.php
  • Remove * 0.6 gain cap in audio.js tone() — was silently capping all beep volume at 60% of the user-selected level
  • Switch Android TTS stream STREAM_MUSICSTREAM_ALARM in AudioTTSFunctions.kt so spoken cues are audible even when media volume is turned down

Test plan

  • Timer PREPARE phase: one beep per second
  • Lead-in countdown before phase end: 3 rapid beeps per count
  • Voice mode: TTS volume follows the volume slider
  • Beep volume noticeably louder at max setting
  • On Android: TTS audible even with media volume at zero (alarm volume controls it)

Generated by Claude Code

claude added 2 commits July 16, 2026 22:04
Update actions/cache from v4 to v6 in all GitHub Actions workflow files.
The v6 release maintains full backward compatibility with the same `path`,
`key`, and `restore-keys` parameters.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6j3ZiTovPDU2HkzDzWN6w
…se STREAM_ALARM for TTS

- Swap beep() and prepareBeep() in playBeep handler: PREPARE phase now
  ticks with a single beep each second; lead-in countdown fires the
  3-rapid-beep sequence before each phase end
- Pass this.volume to audioTTS.speak() so TTS respects the saved volume
- Raise default volume from 0.8 → 1.0 in audio.js, app.js (timerAudio
  and settingsSounds), app/Livewire/Settings.php, app/Models/Setting.php
- Remove * 0.6 gain reduction in audio.js tone() — was silently capping
  all beep volume at 60% of the user-selected level
- Switch Android TTS audio stream from STREAM_MUSIC to STREAM_ALARM so
  spoken cues are audible even when media volume is turned down

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6j3ZiTovPDU2HkzDzWN6w
@nbucic
nbucic merged commit efb9627 into master Jul 18, 2026
1 of 2 checks passed
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.

2 participants