Prepare the data
Use licensed audio with genre labels and split by artist or recording source.
Listen to the features. Check the artist split.
Music-genre labels are subjective and recordings from the same artist can leak across splits. Audio features and evaluation should account for clip length and recording conditions.
Learning concept · Not a validated service
Music-genre labels are subjective and recordings from the same artist can leak across splits. Audio features and evaluation should account for clip length and recording conditions.
A possible application for music librarians: Help music librarians review tags in an owned audio collection. This extension is not delivered by the supplied starter.
Use licensed audio with genre labels and split by artist or recording source.
Extract documented spectral or MFCC features and fit a simple genre-classification baseline.
Report macro F1 on held-out artists and inspect mixed-genre and noisy recordings.
Provide editable genre suggestions with audio provenance and no redistribution of restricted recordings.
The supplied starter synthesises 160 one-second noisy tones near 440 Hz and 880 Hz. It extracts four FFT summary features, fits a 200-tree RandomForestClassifier and reports held-out binary classification results.
spectrum = np.abs(np.fft.rfft(signal))
features = [
spectrum.mean(), spectrum.std(),
spectrum.argmax(), np.percentile(spectrum, 95),
]
# Later in the supplied script, after generating and splitting tone features:
model = RandomForestClassifier(n_estimators=200, random_state=42)
model.fit(X_train, y_train)
print(classification_report(y_test, model.predict(X_test)))The source distinguishes synthetic tones near two frequencies, not music genres. Distinguishing two synthetic tone ranges does not demonstrate music understanding, speaker identity, transcription or speech synthesis. The source contains no real recordings, transcripts or generated speech.
Proposed extension: Help music librarians review tags in an owned audio collection.
This is a potential application pathway, not a delivered product. The supplied starter does not implement this service or validate it with real users.
Networkers Home runs this topic inside its AI Engineer Course, with placement support and hands-on labs.