# Editor.LipSyncGenerator.Generate

```csharp
static List<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.

### Parameters

- `samples` (`short[]`)
- `duration` (`float`)

### Returns

`List<VisemeFrame>`

Declared in [Editor.LipSyncGenerator](/api/Editor.LipSyncGenerator).
Assembly: `Sandbox.Tools`.
