---
title: play()
framework: realitykit
role: symbol
role_heading: Instance Method
path: realitykit/audiogeneratorcontroller/play()
---

# play()

Begins the audio stream from the generator render handler.

## Declaration

```swift
@MainActor func play()
```

## Discussion

Discussion When you play the controller, the render handler starts receiving callbacks. The controller ignores calls to play() when audio is already playing.
