技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
feature-extraction【数据与研究】Routes pyAudioAnalysis short-term, mid-term, spectrogram, chromagram, beat, and matrix export feature-extraction work.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user needs pyAudioAnalysis 0.3.14 acoustic feature extraction from an in-memory signal or audio file: short-term features, mid-term statistics, spectrograms, chromagrams, optional beat features, or matrix export to NPY/CSV.
(sampling_rate, signal) and converting stereo to mono before feature extraction.ShortTermFeatures.feature_extraction(...) and its feature-name/shape contract.ShortTermFeatures.spectrogram(...) and ShortTermFeatures.chromagram(...) representations.MidTermFeatures.mid_feature_extraction(...), directory-level mid-term feature matrices, and mid_feature_extraction_to_file(...) NPY/CSV outputs.classification-regression.segmentation-diarization.cli-and-io.Run the smoke helper before relying on an environment or after changing parameters:
python scripts/feature_smoke.py --help
python scripts/feature_smoke.py --duration 2.0 --short-window 0.05 --short-step 0.05 --mid-window 1.0 --mid-step 1.0
python scripts/feature_smoke.py --input-wav example.wav --output-prefix features/example --store-csv
The helper synthesizes a tone or reads a WAV file, runs short-term and mid-term extraction, checks that feature rows match feature names, optionally writes matrices, and prints a JSON summary. It is a smoke/inspection utility, not a replacement for downstream classification or segmentation workflows.
This sub-skill distills pyAudioAnalysis 0.3.14 package metadata, README feature-extraction examples, feature module signatures and behavior, legacy CLI wrappers for spectrogram/chromagram/feature extraction, and feature-extraction pytest expectations. Runtime guidance is self-contained; do not reopen or run the original repository to use this sub-skill.