harmoni_vad.vad_service
Module Contents
Classes
Voice activity detector |
Functions
|
- class harmoni_vad.vad_service.VoiceActivityDetector(name, param, detector_threshold=0)
Bases:
harmoni_common_lib.service_manager.HarmoniServiceManagerVoice activity detector
- start(rate='')
- Parameters:
rate (int) – How often the detector should run per second (Hz). Note that this rate should be limited by subscribed camera framerate. TODO: actually use this rate. Rate currently matches camera publish rate regardless of this setting
- stop()
Will interrupt the long running action
- Raises:
NotImplementedError – To be used, this function should be overwritten by the child class.
- pause()
Will interrupt the long running action, preventing it from continuing until start is called again.
- Raises:
NotImplementedError – To be used, this function should be overwritten by the child class.
- detect_callback(audio)
Uses image to detect and publish face info. :param audio: the data streaming we want to analyse :type audio: AudioData
- harmoni_vad.vad_service.main()