소스 검색

feat: add empty LaughterFeatureDetector

for jrgillick/laughter-detection to slot into
main
Rob Hallam 3 달 전
부모
커밋
1123eed317
1개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  1. +15
    -0
      pipeline/feature_extractors.py

+ 15
- 0
pipeline/feature_extractors.py 파일 보기

@@ -13,3 +13,18 @@ class FeatureExtractor(ABC):

def teardown(self):
pass
class LaughterFeatureExtractor(FeatureExtractor):
"""Feature extractor for laughter detection.

This class is responsible for extracting features corresponding to laughter in media files.

Here:

setup() is used to validate input files & config, which may involve processing video files to extract audio

run() is used to extract features from the audio using jrgillick's laughter-detection

teardown() is used to clean up any temporary files created during setup according to the config

See: https://github.com/jrgillick/laughter-detection for the laughter-detection library
"""

불러오는 중...
취소
저장