---
title: AnalyzerInput
framework: speech
role: symbol
role_heading: Structure
path: speech/analyzerinput
---

# AnalyzerInput

Time-coded audio data.

## Declaration

```swift
struct AnalyzerInput
```

## Overview

Overview The audio data must have an audio format that is supported by the analyzer’s modules; the analyzer does not perform audio conversion. Call bestAvailableAudioFormat(compatibleWith:considering:) (or its variants) to select an appropriate format to convert to. The audio format may differ from one AnalyzerInput object to the next. If the new audio format is supported by the modules, the modules will be reconfigured as needed.

## Topics

### Creating an input element

- [init(buffer:)](speech/analyzerinput/init(buffer:)-3nt02.md)
- [init(buffer:)](speech/analyzerinput/init(buffer:)-2ysg3.md)
- [init(buffer:bufferStartTime:)](speech/analyzerinput/init(buffer:bufferstarttime:).md)

### Inspecting an input element

- [bufferStartTime](speech/analyzerinput/bufferstarttime.md)
- [bufferDuration](speech/analyzerinput/bufferduration.md)
- [bufferFormat](speech/analyzerinput/bufferformat.md)
- [buffer](speech/analyzerinput/buffer.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Input and output

- [SpeechModuleResult](speech/speechmoduleresult.md)
