Menu

Give navigation voice prompts a deadline
📰

Give navigation voice prompts a deadline

DEV Community: mobile·Spencer Nowell·3 days ago
#74CS7RjV
#devtomobile#devto#dev#route#prompt
Reading 0:00
15s threshold

A spoken navigation prompt can be accurate when it enters the queue and wrong by the time it plays. The driver might have passed the turn while speech was waiting, or a reroute might have replaced the maneuver entirely.

Give each prompt a route revision and an expiration

A pending prompt can carry a route revision, a maneuver ID, and the latest useful playback time. Check them again immediately before playback. Drop a prompt if its route revision changed. If the deadline passed, check if the current maneuver still needs a shorter cue.

A two-second cue that starts one second before a decision point may deliver the turn direction too late.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.