Method SetEmotionAsync
- Namespace
- Oscova.Agents.Avatar
- Assembly
- Oscova.Agents.dll
SetEmotionAsync(string, 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)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.
Returns
- Task<AvatarEmotionResponse>
-
Response indicating success, description, selected emotion, and blend speed applied.