tyiannak / pyAudioAnalysis

Python Audio Analysis Library: Feature Extraction, Classification, Segmentation and Applications
Apache License 2.0
5.89k stars 1.2k forks source link

Code to check many media files for speech or music. #402

Closed tomasris closed 1 week ago

tomasris commented 1 week ago

Can you give a sample code to quickly check many media files for speech or music ? You have such an example: from pyAudioAnalysis import audioSegmentation as aS [flagsInd, classesAll, acc, CM] = aS.mid_term_file_classification("data/scottish.wav", "data/models/svm_rbf_sm", "svm", True, 'data/scottish.segments') It works great, but it creates windows with diagrams. How to run this all to check many files, but no diagram output, just a timestamp where the music or speech is.

Found solution:

gt_file=""