feat(train): each km announced on foot, each 5 km by bike (ADR 0030, D49)

Step 11 takes up what OpenTracks does that Train didn't (D49). 11a: a
recording announces each kilometre on foot and each 5 km by bike, never
on a rower, where the Record sheet's switch is on for the activity
(remembered in the person's announce.json, off at first): the distance,
the moving time, the split's pace or speed and the heart rate. The app
hands the recorder the words in its language; Announcer.kt counts the
moving time and the distance, Cues.kt speaks the line after a cue still
speaking.

Not tried on a phone yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-10-29 14:25:13 +01:00
commit db7e0b7bcd
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -636,5 +636,22 @@
"recordMusicOn": "Music",
"@recordMusicOn": {"description": "The segment playing the kept tracks by cadence."},
"recordMetronome": "Metronome",
"recordMusicOff": "Off"
"recordMusicOff": "Off",
"recordAnnounce": "Announcements",
"recordAnnounceFoot": "Every kilometre: time, pace and heart rate",
"@recordAnnounceFoot": {"description": "The switch's hint on foot (D49)."},
"recordAnnounceBike": "Every 5 km: time, speed and heart rate",
"@recordAnnounceBike": {"description": "The switch's hint on a bike (D49)."},
"announceKilometres": "{count, plural, =1{1 kilometre} other{{count} kilometres}}",
"@announceKilometres": {"placeholders": {"count": {"type": "int"}}},
"announceHours": "{count, plural, =1{1 hour} other{{count} hours}}",
"@announceHours": {"placeholders": {"count": {"type": "int"}}},
"announceTime": "Time {time}",
"@announceTime": {"placeholders": {"time": {"type": "String"}}},
"announcePace": "Pace {pace} a kilometre",
"@announcePace": {"placeholders": {"pace": {"type": "String"}}},
"announceSpeed": "Speed {speed} kilometres an hour",
"@announceSpeed": {"placeholders": {"speed": {"type": "String"}}},
"announceHeartRate": "Heart rate {bpm}",
"@announceHeartRate": {"placeholders": {"bpm": {"type": "String"}}}
}