Photon Voice  v2.8
English | 日本語 | 한국
Public Member Functions | List of all members
AudioUtil.VoiceDetectorFloat Class Reference

VoiceDetector specialization for float audio. More...

Inherits AudioUtil.VoiceDetector< float >.

Public Member Functions

 VoiceDetectorFloat (int samplingRate, int numChannels)
 Create a new VoiceDetectorFloat instance. More...
override float[] Process (float[] buffer)
- Public Member Functions inherited from AudioUtil.VoiceDetector< float >
abstract T[] Process (T[] buf)
 Process a frame of audio data. More...
void Dispose ()

Additional Inherited Members

- Protected Attributes inherited from AudioUtil.VoiceDetector< float >
int activityDelay
int autoSilenceCounter
int valuesCountPerSec
int activityDelayValuesCount
- Properties inherited from AudioUtil.VoiceDetector< float >
bool On [get, set]
 If true, voice detection enabled. More...
float Threshold [get, set]
 Voice detected as soon as signal level exceeds threshold. More...
bool Detected [get, protected set]
 If true, voice detected. More...
DateTime DetectedTime [get]
 Last time when switched to detected state. More...
int ActivityDelayMs [get, set]
 Keep detected state during this time after signal level dropped below threshold. More...
- Events inherited from AudioUtil.VoiceDetector< float >
Action OnDetected
 Called when switched to detected state. More...

Detailed Description

VoiceDetector specialization for float audio.

Constructor & Destructor Documentation

VoiceDetectorFloat ( int  samplingRate,
int  numChannels 

Create a new VoiceDetectorFloat instance.

samplingRateSampling rate of the audio signal (in Hz).
numChannelsNumber of channels in the audio signal.