LipSyncGeneratorclass

Generates face lipsync visemes from audio.

objectLipSyncGenerator
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public static abstract sealed class Editor.LipSyncGenerator

Methods3

Showing 3 methods

public static System.Collections.Generic.List`1<Sandbox.VisemeFrame> Generate(short[] samples, float duration)PUBLICSTATIC

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.

ParameterTypeDescription
samplesshort[]
durationfloat
Returns:List<VisemeFrame>

public static string Label(int viseme)PUBLICSTATIC

Short display label for a viseme, e.g. "PP".

ParameterTypeDescription
visemeint
Returns:string

public static string MorphName(int viseme)PUBLICSTATIC

Model morph name for a viseme, e.g. "viseme_PP".

ParameterTypeDescription
visemeint
Returns:string

Properties1

Showing 1 properties

public static int Editor.LipSyncGenerator.Count { get; set; }PUBLICSTATICGETSET

Number of visemes.

Returns:int

On this page