# Sandbox.SubtitleTrack.FromText

```csharp
static SubtitleTrack FromText(string text, float duration)
```

Create a track from plain text when word timings aren't available.
Words share the duration in proportion to their length.

### Parameters

- `text` (`string`)
- `duration` (`float`)

### Returns

`SubtitleTrack`

Declared in [Sandbox.SubtitleTrack](/api/Sandbox.SubtitleTrack).
Assembly: `Sandbox.Engine`.
