Interface IAvatarBridgeService
- Namespace
- Oscova.Agents.Avatar
- Assembly
- Oscova.Agents.dll
Defines operations supported by an Oscova Avatar Engine bridge.
public interface IAvatarBridgeServiceProperties
- ConnectedBaseUrl
-
Gets the base URL currently targeted by the bridge.
- SessionVersion
-
Gets the local version of the currently authenticated engine session.
Methods
- ChangeBackgroundColorAsync(int, int, int)
-
Changes the background color using RGB components. Values outside the valid range (0-255) are rejected by the avatar engine.
- ChangeResolutionAsync(int, int, bool)
-
Changes the engine/window resolution and fullscreen mode.
- CheckHealthAsync()
-
Performs a lightweight health/status check for the running avatar engine.
- ClearMessageAsync()
-
Clears the avatar message panel immediately.
- CompletePairingAsync(string, string)
-
Completes pairing with the code displayed by the engine.
- ConnectAsync(string, AvatarAccessMode)
-
Connects to the avatar engine at the specified base URL.
- ListAvatarsAsync()
-
Retrieves the avatar names reported by the running engine.
- ListEmotionsAsync()
-
Retrieves the emotion names reported by the running engine.
- ListGesturesAsync()
-
Lists stationary gesture names from the connected Engine.
- ListHairOptionsAsync(string)
-
Retrieves the hair options configured for an avatar.
- ListOutfitsAsync(string)
-
Retrieves complete outfits curated for the named avatar.
- QueueFileSpeechAsync(string, string)
-
Queues a local speech file for lip-sync and speech playback.
- QueueSpeechAsync(string, string, string?)
-
Queues speech playback using a remote audio URL. The avatar bridge downloads the URL to a local file before enqueueing playback.
- SelectAvatarAsync(string)
-
Selects the current avatar by name. Avatar name must match one of the available avatars (case-sensitive). Switching avatars may cause a brief loading period.
- SelectGestureAsync(string)
-
Plays one catalog gesture. None stops it and blends back to idle.
- SelectHairAsync(string, string)
-
Selects a configured hair option for an avatar.
- SelectOutfitAsync(string, string)
-
Selects both garments of a catalog outfit in one engine operation.
- SetEmotionAsync(string, float, float)
-
Sets a target emotion with smooth transition. The emotion will transition over the specified blend speed duration. Emotion name must match one of the available emotions (case-sensitive).
- SetGraphicsPresetAsync(int, bool)
-
Sets the global graphics quality preset. Level values map to known presets (0=Low, 1=Medium, 2=High, 3=Epic, 4=Cinematic).
- SetPresentationSettingsAsync(AvatarPresentationSettingsRequest)
-
Applies both layouts, selection mode and message duration as one configuration.
- SetSpeechVolumeAsync(float)
-
Sets the speech playback volume. Values outside the valid range (0.0 to 1.0) are rejected by the avatar engine.
- ShowMessageAsync(string)
-
Shows text on the avatar message panel without playing audio.
- ShutdownAsync(string, bool, CancellationToken)
-
Requests a shutdown of the avatar engine. The response is sent before the engine terminates.
- StartPairingAsync(string)
-
Asks the engine to display a short-lived pairing code.
- StopSpeechAsync(bool, string?)
-
Stops ongoing speech playback and lip-sync animation.