Photon C++ Client API  5.0.7.3
Public Member Functions | List of all members
IVoiceDetector Class Referenceabstract

Voice Activity Detector interface. More...

Inheritance diagram for IVoiceDetector:
Inheritance graph
[legend]

Public Member Functions

virtual bool getOn (void) const =0
 If true, voice detection enabled. More...
 
virtual void setOn (bool)=0
 
virtual float getThreshold (void) const =0
 Voice detected as soon as signal level exceeds threshold. More...
 
virtual void setThreshold (float)=0
 
virtual bool getDetected (void) const =0
 If true, voice detected. More...
 
virtual int getDetectedTime (void) const =0
 Last time when switched to detected state. More...
 
virtual void setOnDetected (void(*pCallback)(void))=0
 Called when switched to detected state. More...
 
virtual int getActivityDelayMs (void) const =0
 Keep detected state during this time after signal level dropped below threshold. More...
 
virtual void setActivityDelayMs (int)=0
 

Detailed Description

Voice Activity Detector interface.

Member Function Documentation

◆ getOn()

virtual bool getOn ( void  ) const
pure virtual

If true, voice detection enabled.

Implemented in VoiceDetector< T >, and VoiceDetectorDummy.

◆ getThreshold()

virtual float getThreshold ( void  ) const
pure virtual

Voice detected as soon as signal level exceeds threshold.

Implemented in VoiceDetector< T >, and VoiceDetectorDummy.

◆ getDetected()

virtual bool getDetected ( void  ) const
pure virtual

If true, voice detected.

Implemented in VoiceDetector< T >, and VoiceDetectorDummy.

◆ getDetectedTime()

virtual int getDetectedTime ( void  ) const
pure virtual

Last time when switched to detected state.

Implemented in VoiceDetector< T >, and VoiceDetectorDummy.

◆ setOnDetected()

virtual void setOnDetected ( void(*)(void)  pCallback)
pure virtual

Called when switched to detected state.

Implemented in VoiceDetector< T >, and VoiceDetectorDummy.

◆ getActivityDelayMs()

virtual int getActivityDelayMs ( void  ) const
pure virtual

Keep detected state during this time after signal level dropped below threshold.

Implemented in VoiceDetector< T >, and VoiceDetectorDummy.