API ReferenceEditor
LipSyncGeneratorclass
Generates face lipsync visemes from audio.
object→LipSyncGenerator
Methods3
Showing 3 methods
public static System.Collections.Generic.List`1<Sandbox.VisemeFrame> Generate(short[] samples, float duration)
Analyze audio and return the visemes it produces over time, with silence dropped. `samples` is a mono stream that spans `duration` seconds, so times are scaled to the duration and line up with the sound editor timeline.
| Parameter | Type | Description |
|---|---|---|
| samples | short[] | — |
| duration | float | — |
public static string Label(int viseme)
Short display label for a viseme, e.g. "PP".
| Parameter | Type | Description |
|---|---|---|
| viseme | int | — |
Returns:
string—public static string MorphName(int viseme)
Model morph name for a viseme, e.g. "viseme_PP".
| Parameter | Type | Description |
|---|---|---|
| viseme | int | — |
Returns:
string—No results match this filter.
Properties1
Showing 1 properties
public static int Editor.LipSyncGenerator.Count { get; set; }
Number of visemes.
Returns:
int—No results match this filter.