Base Soundscape App Function Service
Exposes Soundscape's actions to Gemini and other agents.
Every function is a thin wrapper over SoundscapeActionExecutor, the same shared vocabulary the iOS App Intents run on, so the two platforms cannot drift into describing different capabilities.
The KDoc on each function below is not decoration: with isDescribedByKDoc = true it becomes the natural-language description the agent reads to decide when to call it.
Requires API 36, well above the app's minSdk of 30. Nothing else references this class, so on older devices the service simply never starts.
Properties
Functions
Calls out what lies ahead of the user in the direction they are facing.
Calls out the points of interest around the user, positioned in spatial audio.
Says the audio beacon's name, distance, direction and street address. Says "No beacon active" when there is no beacon or route playing.
Says how far away the audio beacon is, from the beacon's direction. Says "No beacon active" when there is no beacon or route playing.
Lists the names of the user's saved markers. Works whether or not Soundscape is running, because it only reads saved data.
Lists the names of the user's saved routes. Works whether or not Soundscape is running, because it only reads saved data.
Describes where the user is now — the street, and what is nearby.
Calls out the user's saved markers that are nearby.
Skips forward to the next waypoint on the route being played.
Goes back to the previous waypoint on the route being played.
Sets how much Soundscape says automatically as the user walks: Silent turns automatic callouts off altogether, leaving beacons, routes and on-demand callouts; Essential calls out only streets, junctions and landmarks; Simplified skips minor paths and repeats itself less; Detailed calls out everything nearby. Useful when a busy street is too noisy, or a quiet one too sparse. The change is saved, the same as choosing it in Settings.
Sets an audio beacon on one of the user's saved markers, matched by name. The beacon plays a repeating tone from the direction of the marker until it is stopped.
Starts one of the user's saved routes, matched by name.
Switches the audio beacon off.
Stops the route that is currently playing.
Mutes the audio beacon, or unmutes it if it is already muted.