Method SetEmotionAsync
- Namespace
- Oscova.Agents.Avatar
- Assembly
- Oscova.Agents.dll
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).
Task<AvatarEmotionResponse> SetEmotionAsync(string emotionName, float blendSpeed, float intensity = 1)Parameters
emotionNamestring-
A case-sensitive name returned by Oscova.Agents.Avatar.IAvatarBridgeService.ListEmotionsAsync.
blendSpeedfloat-
Duration in seconds for the emotion transition. Must be greater than zero. A value of 0.25 is recommended.
intensityfloat-
Finite strength from 0 to 1. Defaults to 1. Zero removes emotion influence.
Returns
- Task<AvatarEmotionResponse>
-
Response indicating success, description, selected emotion, blend speed and accepted intensity.