---
title: Audio.GeneratorRenderHandler
framework: realitykit
role: symbol
role_heading: Type Alias
path: realitykit/audio/generatorrenderhandler
---

# Audio.GeneratorRenderHandler

A handler that generates real-time audio.

## Declaration

```swift
typealias GeneratorRenderHandler = AVAudioSourceNodeRenderBlock
```

## Discussion

Discussion The audio format is Float32 with a sample rate of 48000. note: The system executes your handler in a real-time audio thread. Achieve optimal performance by ensuring the closure finishes quickly. Avoid heap allocations or locks within the closure. note: As of Swift 6, you should mark your handler as @Sendable to ensure no actor isolation is inferred and that any captured values are safe to use from a realtime audio concurrency domain.
