Skip to main content

smwebsdk.persona

Home > @soulmachines/smwebsdk > Persona

Persona class

Persona class to control a scene persona

Signature:

export declare class Persona 

Constructors

ConstructorModifiersDescription
(constructor)(scene, personaId)Constructs a new instance of the Persona class

Properties

PropertyModifiersTypeDescription
_personaIdprotectedPersonaId
_sceneprotectedScene
onConversationResultEventreadonlySmEvent
onSpeechMarkerEventreadonlySmEvent

Methods

MethodModifiersDescription
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