smwebsdk.persona
Home > @soulmachines/smwebsdk > Persona
Persona class
Persona class to control a scene persona
Signature:
export declare class Persona
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(scene, personaId) | Constructs a new instance of the Persona class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
_personaId | protected | PersonaId | |
_scene | protected | Scene | |
onConversationResultEvent | readonly | SmEvent | |
onSpeechMarkerEvent | readonly | SmEvent |
Methods
Method | Modifiers | Description |
---|---|---|
animateToNamedCameraWithOrbitPan(cameraName, time, orbitDegX, orbitDegY, panDeg, tiltDeg) | Cut or animate to a named camera position, with support for camera adjustment. | |
conversationGetVariables() | Get variables will return the current conversation variable values in the promise completion. Completion/promise receives an object with member 'variables'. | |
conversationSend(text, variables, optionalArgs) | Send a chat message to conversation | |
conversationSetVariables(variables) | Set variables that will be applied on the next conversation request triggered by speech to text or a conversationSend() | |
stopSpeaking() | Stop speaking |