OVRLipSyncContextBase Class Reference

OVRLipSyncContextBase interfaces into the Oculus phoneme recognizer. This component should be added into the scene once for each Audio Source. More...

Inheritance diagram for OVRLipSyncContextBase:
OVRLipSyncContext OVRLipSyncContextCanned

Public Member Functions

OVRLipSync.Frame GetCurrentPhonemeFrame ()
 Gets the current phoneme frame (lock and copy current frame to caller frame) More...
 
void SetVisemeBlend (int viseme, int amount)
 Sets a given viseme id blend weight to a given amount More...
 
void SetLaughterBlend (int amount)
 Sets a given viseme id blend weight to a given amount More...
 
OVRLipSync.Result ResetContext ()
 Resets the context. More...
 

Public Attributes

AudioSource audioSource = null
 
OVRLipSync.ContextProviders provider = OVRLipSync.ContextProviders.Enhanced
 
bool enableAcceleration = true
 

Properties

int Smoothing [get, set]
 
uint Context [get]
 
OVRLipSync.Frame Frame [get]
 

Detailed Description

OVRLipSyncContextBase interfaces into the Oculus phoneme recognizer. This component should be added into the scene once for each Audio Source.

Member Function Documentation

◆ GetCurrentPhonemeFrame()

OVRLipSync.Frame OVRLipSyncContextBase.GetCurrentPhonemeFrame ( )

Gets the current phoneme frame (lock and copy current frame to caller frame)

Returns
error code
Parameters
inFrameIn frame.

◆ ResetContext()

OVRLipSync.Result OVRLipSyncContextBase.ResetContext ( )

Resets the context.

Returns
error code

◆ SetLaughterBlend()

void OVRLipSyncContextBase.SetLaughterBlend ( int  amount)

Sets a given viseme id blend weight to a given amount

Parameters
amountInteger viseme amount

◆ SetVisemeBlend()

void OVRLipSyncContextBase.SetVisemeBlend ( int  viseme,
int  amount 
)

Sets a given viseme id blend weight to a given amount

Parameters
visemeInteger viseme ID
amountInteger viseme amount

Member Data Documentation

◆ audioSource

AudioSource OVRLipSyncContextBase.audioSource = null

◆ enableAcceleration

bool OVRLipSyncContextBase.enableAcceleration = true

◆ provider

Property Documentation

◆ Context

uint OVRLipSyncContextBase.Context
get

◆ Frame

OVRLipSync.Frame OVRLipSyncContextBase.Frame
getprotected

◆ Smoothing

int OVRLipSyncContextBase.Smoothing
getset

The documentation for this class was generated from the following file: