---
title: "makeTrainingSession(trainingData:parameters:sessionParameters:)"
framework: createml
role: symbol
role_heading: Type Method
path: "createml/mlsoundclassifier/maketrainingsession(trainingdata:parameters:sessionparameters:)"
---

# makeTrainingSession(trainingData:parameters:sessionParameters:)

Creates an asynchronous training session for a sound classifier.

## Declaration

```swift
static func makeTrainingSession(trainingData: MLSoundClassifier.DataSource, parameters: MLSoundClassifier.ModelParameters = .init(), sessionParameters: MLTrainingSessionParameters = _defaultSessionParameters) throws -> MLTrainingSession<MLSoundClassifier>
```

## Parameters

- `trainingData`: A collection of labeled audio files represented by an doc://com.apple.createml/documentation/CreateML/MLSoundClassifier/DataSource.
- `parameters`: An doc://com.apple.createml/documentation/CreateML/MLSoundClassifier/ModelParameters-swift.struct instance you use to configure the model for the training session.
- `sessionParameters`: An doc://com.apple.createml/documentation/CreateML/MLTrainingSessionParameters instance you use to configure the training session.

## Return Value

Return Value An MLTrainingSession that represents the sound classifier training session.

## See Also

### Training a sound classifier asynchronously

- [train(trainingData:parameters:sessionParameters:)](createml/mlsoundclassifier/train(trainingdata:parameters:sessionparameters:).md)
- [resume(_:)](createml/mlsoundclassifier/resume(_:).md)
- [restoreTrainingSession(sessionParameters:)](createml/mlsoundclassifier/restoretrainingsession(sessionparameters:).md)
- [extractFeatures(trainingData:parameters:sessionParameters:)](createml/mlsoundclassifier/extractfeatures(trainingdata:parameters:sessionparameters:).md)
- [MLSoundClassifier.FeatureExtractionParameters](createml/mlsoundclassifier/featureextractionparameters.md)
