# Sandbox.SubtitleTrack

A sound's subtitle track - individual words over time, authored in the sound
editor and stored in the sound's .meta file. Sample [Sandbox.SubtitleTrack.WordIndexAt](/api/Sandbox.SubtitleTrack/WordIndexAt)
at the sound's playback time to show subtitles word by word, karaoke style.

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Properties

- [`Duration`](/api/Sandbox.SubtitleTrack/Duration): End time of the last word, in seconds.
- [`Text`](/api/Sandbox.SubtitleTrack/Text): Every word joined together, e.g. "hello there friend" - the full subtitle for this sound.
- [`Words`](/api/Sandbox.SubtitleTrack/Words): The words, sorted by start time.

## Methods

- [`WordIndexAt`](/api/Sandbox.SubtitleTrack/WordIndexAt): Index into [Sandbox.SubtitleTrack.Words](/api/Sandbox.SubtitleTrack/Words) of the latest word to have started at this time, or -1 before the first word. Words up to here have been spoken - that's the karaoke highlight. The word may have already ended; it's still being spoken while time is before its [Sandbox.SubtitleTrack.Word.EndTime](/api/Sandbox.SubtitleTrack.Word/EndTime).
