---
title: "MLSoundClassifier.DataSource.labeledFiles(at:)"
framework: createml
role: symbol
role_heading: Case
path: "createml/mlsoundclassifier/datasource/labeledfiles(at:)"
---

# MLSoundClassifier.DataSource.labeledFiles(at:)

Creates a data source from a folder that contains audio files, each named after the sound they represent.

## Declaration

```swift
case labeledFiles(at: URL)
```

## Parameters

- `at`: URL: The URL to a folder in the file system that contains audio files. The data source uses the first component of each audio file’s name as its classification label.

## Discussion

Discussion Create a sound classifier data source from a directory of audio files with the labeledFiles case. You must name each file with a sound classification label, followed by a period and an arbitrary string, ending with the file extension. For example, you can name a sound classifier’s training files as Laughter.3.png, Applause.1.jpg, Applause.2.jpg, and so on. In this example, these audio file names give a sound classifier at least two class labels: Laughter Applause

## See Also

### Creating a data source

- [MLSoundClassifier.DataSource.labeledDirectories(at:)](createml/mlsoundclassifier/datasource/labeleddirectories(at:).md)
- [MLSoundClassifier.DataSource.filesByLabel(_:)](createml/mlsoundclassifier/datasource/filesbylabel(_:).md)
- [MLSoundClassifier.DataSource.features(table:featureColumn:labelColumn:parameters:)](createml/mlsoundclassifier/datasource/features(table:featurecolumn:labelcolumn:parameters:).md)
- [MLSoundClassifier.DataSource.featuresDataFrame(_:featureColumn:labelColumn:parameters:)](createml/mlsoundclassifier/datasource/featuresdataframe(_:featurecolumn:labelcolumn:parameters:).md)
- [MLSoundClassifier.FeatureExtractionParameters](createml/mlsoundclassifier/featureextractionparameters.md)
