---
title: analyze()
framework: soundanalysis
role: symbol
role_heading: Instance Method
path: soundanalysis/snaudiofileanalyzer/analyze()
---

# analyze()

Analyzes the audio file synchronously.

## Declaration

```swift
func analyze()
```

## Mentioned in

Classifying Sounds in an Audio File

## Discussion

Discussion This method executes synchronously and may block the calling thread for a long time. important: Keep your app’s user interface responsive by calling this method from a thread other than the main thread. The audio file analyzer sends errors to each request’s results observer.

## See Also

### Analyzing Data

- [analyze(completionHandler:)](soundanalysis/snaudiofileanalyzer/analyze(completionhandler:).md)
- [cancelAnalysis()](soundanalysis/snaudiofileanalyzer/cancelanalysis().md)
