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.
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 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.