fitness: TTS volume control, audio ducking, and workout start/finish announcements

Add TTS volume slider (default 80%) and audio duck toggle to voice
guidance settings. Announce "Workout started" when TTS initializes and
speak a full workout summary (time, distance, avg pace) on finish.
The finish summary reuses the existing TTS instance via handoff so it
plays fully without blocking the completion screen.
This commit is contained in:
2026-03-30 08:48:46 +02:00
parent 564353b167
commit e152219c5b
4 changed files with 268 additions and 49 deletions
+2
View File
@@ -26,6 +26,8 @@ export interface VoiceGuidanceConfig {
metrics: string[];
language: string;
voiceId?: string;
ttsVolume?: number; // 0.01.0, relative TTS volume
audioDuck?: boolean; // duck other audio during TTS
intervals?: IntervalStep[];
}