OVRLipSync interfaces into the Oculus lip sync engine. This component should be added into the scene once.
More...
|
| class | Frame |
| | NOTE: Opaque typedef for lip-sync context is an unsigned int (uint) More...
|
| |
|
| enum | Result {
Result.Success = 0,
Result.Unknown = -2200,
Result.CannotCreateContext = -2201,
Result.InvalidParam = -2202,
Result.BadSampleRate = -2203,
Result.MissingDLL = -2204,
Result.BadVersion = -2205,
Result.UndefinedFunction = -2206
} |
| |
| enum | AudioDataType { AudioDataType.S16_Mono,
AudioDataType.S16_Stereo,
AudioDataType.F32_Mono,
AudioDataType.F32_Stereo
} |
| |
| enum | Viseme {
Viseme.sil,
Viseme.PP,
Viseme.FF,
Viseme.TH,
Viseme.DD,
Viseme.kk,
Viseme.CH,
Viseme.SS,
Viseme.nn,
Viseme.RR,
Viseme.aa,
Viseme.E,
Viseme.ih,
Viseme.oh,
Viseme.ou
} |
| |
| enum | Signals {
Signals.VisemeOn,
Signals.VisemeOff,
Signals.VisemeAmount,
Signals.VisemeSmoothing,
Signals.LaughterAmount
} |
| |
| enum | ContextProviders { ContextProviders.Original,
ContextProviders.Enhanced,
ContextProviders.Enhanced_with_Laughter
} |
| |
|
| static Result | Initialize () |
| |
| static Result | Initialize (int sampleRate, int bufferSize) |
| |
| static void | Shutdown () |
| |
| static Result | IsInitialized () |
| | Determines if is initialized. More...
|
| |
| static Result | CreateContext (ref uint context, ContextProviders provider, int sampleRate=0, bool enableAcceleration=false) |
| | Creates a lip-sync context. More...
|
| |
| static Result | CreateContextWithModelFile (ref uint context, ContextProviders provider, string modelPath, int sampleRate=0, bool enableAcceleration=false) |
| | Creates a lip-sync context with specified model file. More...
|
| |
| static Result | DestroyContext (uint context) |
| | Destroy a lip-sync context. More...
|
| |
| static Result | ResetContext (uint context) |
| | Resets the context. More...
|
| |
| static Result | SendSignal (uint context, Signals signal, int arg1, int arg2) |
| | Sends a signal to the lip-sync engine. More...
|
| |
| static Result | ProcessFrame (uint context, float[] audioBuffer, Frame frame, bool stereo=true) |
| | Process float[] audio buffer by lip-sync engine. More...
|
| |
| static Result | ProcessFrame (uint context, short[] audioBuffer, Frame frame, bool stereo=true) |
| | Process short[] audio buffer by lip-sync engine. More...
|
| |
OVRLipSync interfaces into the Oculus lip sync engine. This component should be added into the scene once.
◆ AudioDataType
| Enumerator |
|---|
| S16_Mono | |
| S16_Stereo | |
| F32_Mono | |
| F32_Stereo | |
◆ ContextProviders
| Enumerator |
|---|
| Original | |
| Enhanced | |
| Enhanced_with_Laughter | |
◆ Result
| Enumerator |
|---|
| Success | |
| Unknown | |
| CannotCreateContext | |
| InvalidParam | |
| BadSampleRate | |
| MissingDLL | |
| BadVersion | |
| UndefinedFunction | |
◆ Signals
| Enumerator |
|---|
| VisemeOn | |
| VisemeOff | |
| VisemeAmount | |
| VisemeSmoothing | |
| LaughterAmount | |
◆ Viseme
| Enumerator |
|---|
| sil | |
| PP | |
| FF | |
| TH | |
| DD | |
| kk | |
| CH | |
| SS | |
| nn | |
| RR | |
| aa | |
| E | |
| ih | |
| oh | |
| ou | |
◆ CreateContext()
| static Result OVRLipSync.CreateContext |
( |
ref uint |
context, |
|
|
ContextProviders |
provider, |
|
|
int |
sampleRate = 0, |
|
|
bool |
enableAcceleration = false |
|
) |
| |
|
static |
Creates a lip-sync context.
- Returns
- error code
- Parameters
-
| context | Context. |
| provider | Provider. |
| enableAcceleration | Enable DSP Acceleration. |
◆ CreateContextWithModelFile()
| static Result OVRLipSync.CreateContextWithModelFile |
( |
ref uint |
context, |
|
|
ContextProviders |
provider, |
|
|
string |
modelPath, |
|
|
int |
sampleRate = 0, |
|
|
bool |
enableAcceleration = false |
|
) |
| |
|
static |
Creates a lip-sync context with specified model file.
- Returns
- error code
- Parameters
-
| context | Context. |
| provider | Provider. |
| modelPath | Model Dir. |
| sampleRate | Sampling Rate. |
| enableAcceleration | Enable DSP Acceleration. |
◆ DestroyContext()
| static Result OVRLipSync.DestroyContext |
( |
uint |
context | ) |
|
|
static |
Destroy a lip-sync context.
- Returns
- The context.
- Parameters
-
◆ Initialize() [1/2]
| static Result OVRLipSync.Initialize |
( |
| ) |
|
|
static |
◆ Initialize() [2/2]
| static Result OVRLipSync.Initialize |
( |
int |
sampleRate, |
|
|
int |
bufferSize |
|
) |
| |
|
static |
◆ IsInitialized()
| static Result OVRLipSync.IsInitialized |
( |
| ) |
|
|
static |
Determines if is initialized.
- Returns
true if is initialized; otherwise, false.
◆ ProcessFrame() [1/2]
| static Result OVRLipSync.ProcessFrame |
( |
uint |
context, |
|
|
float [] |
audioBuffer, |
|
|
Frame |
frame, |
|
|
bool |
stereo = true |
|
) |
| |
|
static |
Process float[] audio buffer by lip-sync engine.
- Returns
- error code
- Parameters
-
| context | Context. |
| audioBuffer | PCM audio buffer. |
| frame | Lip-sync Frame. |
| stereo | Whether buffer is part of stereo or mono stream. |
◆ ProcessFrame() [2/2]
| static Result OVRLipSync.ProcessFrame |
( |
uint |
context, |
|
|
short [] |
audioBuffer, |
|
|
Frame |
frame, |
|
|
bool |
stereo = true |
|
) |
| |
|
static |
Process short[] audio buffer by lip-sync engine.
- Returns
- error code
- Parameters
-
| context | Context. |
| audioBuffer | PCM audio buffer. |
| frame | Lip-sync Frame. |
| stereo | Whether buffer is part of stereo or mono stream. |
◆ ResetContext()
| static Result OVRLipSync.ResetContext |
( |
uint |
context | ) |
|
|
static |
Resets the context.
- Returns
- error code
- Parameters
-
◆ SendSignal()
| static Result OVRLipSync.SendSignal |
( |
uint |
context, |
|
|
Signals |
signal, |
|
|
int |
arg1, |
|
|
int |
arg2 |
|
) |
| |
|
static |
Sends a signal to the lip-sync engine.
- Returns
- error code
- Parameters
-
| context | Context. |
| signal | Signal. |
| arg1 | Arg1. |
| arg2 | Arg2. |
◆ Shutdown()
| static void OVRLipSync.Shutdown |
( |
| ) |
|
|
static |
◆ SignalCount
| readonly int OVRLipSync.SignalCount = Enum.GetNames(typeof(Signals)).Length |
|
static |
◆ sInstance
◆ strOVRLS
| const string OVRLipSync.strOVRLS = "OVRLipSync" |
◆ VisemeCount
| readonly int OVRLipSync.VisemeCount = Enum.GetNames(typeof(Viseme)).Length |
|
static |
The documentation for this class was generated from the following file: