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

VoiceDetector specialization for float audio. More...

Inherits AudioUtil.VoiceDetector< short >.

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from AudioUtil.VoiceDetector< short >
int activityDelay
 
int autoSilenceCounter
 
int valuesCountPerSec
 
int activityDelayValuesCount
 
- Properties inherited from AudioUtil.VoiceDetector< short >
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< short >
Action OnDetected
 Called when switched to detected state. More...
 

Detailed Description

VoiceDetector specialization for float audio.

Constructor & Destructor Documentation

VoiceDetectorShort ( int  samplingRate,
int  numChannels 
)

Create a new VoiceDetectorFloat instance

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