> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.voiceoverpresenter.md).

# VoiceOverPresenter

Class in [Yarn.Unity](/api/csharp/yarn.unity.md)

Inherits from [`DialoguePresenterBase`](/api/csharp/yarn.unity/yarn.unity.dialoguepresenterbase.md)

## Summary

A subclass of [DialoguePresenterBase](/api/csharp/yarn.unity/yarn.unity.dialoguepresenterbase.md) that plays voice-over `UnityEngine.AudioClip` s for lines of dialogue.

```csharp
public sealed class VoiceOverPresenter : DialoguePresenterBase
```

## Fields

| Name                                                                                                                                               | Description                                                                                                                                  |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| [audioSource](/api/csharp/yarn.unity/yarn.unity.voiceoverpresenter/yarn.unity.voiceoverpresenter.audiosource.md)                                   | The `UnityEngine.AudioSource` that this voice over view will play its audio from.                                                            |
| [endLineWhenVoiceoverComplete](/api/csharp/yarn.unity/yarn.unity.voiceoverpresenter/yarn.unity.voiceoverpresenter.endlinewhenvoiceovercomplete.md) | If `true` , the voice over view will request that the dialogue runner proceed to the next line when audio for the line has finished playing. |
| [fadeOutTimeOnLineFinish](/api/csharp/yarn.unity/yarn.unity.voiceoverpresenter/yarn.unity.voiceoverpresenter.fadeouttimeonlinefinish.md)           | The fade out time when the line is interrupted during playback.                                                                              |
| [waitTimeAfterLineComplete](/api/csharp/yarn.unity/yarn.unity.voiceoverpresenter/yarn.unity.voiceoverpresenter.waittimeafterlinecomplete.md)       | The amount of time after playback has completed before this view reports that it's finished delivering the line.                             |
| [waitTimeBeforeLineStart](/api/csharp/yarn.unity/yarn.unity.voiceoverpresenter/yarn.unity.voiceoverpresenter.waittimebeforelinestart.md)           | The amount of time to wait before starting playback of the line.                                                                             |

## Methods

| Name                                                                                                                                                    | Description                                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [OnDialogueCompleteAsync()](/api/csharp/yarn.unity/yarn.unity.voiceoverpresenter/yarn.unity.voiceoverpresenter.ondialoguecompleteasync.md)              | Called by the [DialogueRunner](/api/csharp/yarn.unity/yarn.unity.dialoguerunner.md) to signal that the dialogue has ended, and no more lines will be delivered. |
| [OnDialogueStartedAsync()](/api/csharp/yarn.unity/yarn.unity.voiceoverpresenter/yarn.unity.voiceoverpresenter.ondialoguestartedasync.md)                | Called by the [DialogueRunner](/api/csharp/yarn.unity/yarn.unity.dialoguerunner.md) to signal that dialogue has started.                                        |
| [RunLineAsync(LocalizedLine,LineCancellationToken)](/api/csharp/yarn.unity/yarn.unity.voiceoverpresenter/yarn.unity.voiceoverpresenter.runlineasync.md) | Begins playing the associated audio for the specified line.                                                                                                     |
