---
title: "predictions(from:)"
framework: createml
role: symbol
role_heading: Instance Method
path: "createml/mlsoundclassifier/predictions(from:)"
---

# predictions(from:)

Generates predictions for an array of audio files.

## Declaration

```swift
func predictions(from audioFiles: [URL]) throws -> [String]
```

## Parameters

- `audioFiles`: An array of audio-file URLs you want the sound classifier to categorize.

## Return Value

Return Value An array of prediction labels for the audio files.

## See Also

### Testing a sound classifier

- [predictions(from:overlapFactor:predictionTimeWindowSize:)](createml/mlsoundclassifier/predictions(from:overlapfactor:predictiontimewindowsize:).md)
