-
Notifications
You must be signed in to change notification settings - Fork 10
WebRtcVad.HasSpeech()
Overload | Description |
---|---|
HasSpeech(byte[]) | Test whether the supplied frame contains speech. |
HasSpeech(short[]) | Test whether the supplied frame contains speech. |
HasSpeech(IntPtr) | Test whether the supplied frame contains speech. |
HasSpeech(byte[], SampleRate, FrameLength) | Test whether the supplied frame contains speech. |
HasSpeech(short[], SampleRate, FrameLength) | Test whether the supplied frame contains speech. |
HasSpeech(IntPtr, SampleRate, FrameLength) | Test whether the supplied frame contains speech. |
public bool HasSpeech(byte[] audioFrame);
Test whether the supplied frame contains speech.
true if the provided frame contains speech, otherwise false.
Name | Type | Description |
---|---|---|
audioFrame | System.Byte[] | Single frame of audio. |
The supplied frame must be encoded according to SampleRate and FrameLength.
To test a frame at other rates or length, either re-set the appropriate properties, or use the
standalone overload HasSpeech(byte[], SampleRate, FrameLength)
.
public bool HasSpeech(short[] audioFrame);
Test whether the supplied frame contains speech.
true if the provided frame contains speech, otherwise false.
Name | Type | Description |
---|---|---|
audioFrame | System.Int16[] | Single frame of audio. |
The supplied frame must be encoded according to SampleRate and FrameLength.
To test a frame at other rates or length, either re-set the appropriate properties, or use the
standalone overload HasSpeech(short[], SampleRate, FrameLength)
.
public bool HasSpeech(IntPtr audioFrame);
Test whether the supplied frame contains speech.
true if the provided frame contains speech, otherwise false.
Name | Type | Description |
---|---|---|
audioFrame | System.IntPtr | Single frame of audio. |
The supplied frame must be encoded according to SampleRate and FrameLength.
To test a frame at other rates or length, either re-set the appropriate properties, or use the
standalone overload HasSpeech(IntPtr, SampleRate, FrameLength)
.
public bool HasSpeech(byte[] audioFrame, SampleRate sampleRate, FrameLength frameLength);
Test whether the supplied frame contains speech.
true if the provided frame contains speech, otherwise false.
Name | Type | Description |
---|---|---|
audioFrame | System.Byte[] | Single frame of audio. |
sampleRate | SampleRate | The sample rate used to encode audioFrame . |
frameLength | FrameLength | The length of the frame in audioFrame . |
This overload ignores the SampleRate and FrameLength properties.
To avoid passing the rate and length on each call, use the HasSpeech(byte[])
overload instead.
public bool HasSpeech(short[] audioFrame, SampleRate sampleRate, FrameLength frameLength);
Test whether the supplied frame contains speech.
true if the provided frame contains speech, otherwise false.
Name | Type | Description |
---|---|---|
audioFrame | System.Int16[] | Single frame of audio. |
sampleRate | SampleRate | The sample rate used to encode audioFrame . |
frameLength | FrameLength | The length of the frame in audioFrame . |
This overload ignores the SampleRate and FrameLength properties.
To avoid passing the rate and length on each call, use the HasSpeech(short[])
overload instead.
public bool HasSpeech(IntPtr audioFrame, SampleRate sampleRate, FrameLength frameLength);
Test whether the supplied frame contains speech.
true if the provided frame contains speech, otherwise false.
Name | Type | Description |
---|---|---|
audioFrame | System.IntPtr | Single frame of audio. |
sampleRate | SampleRate | The sample rate used to encode audioFrame . |
frameLength | FrameLength | The length of the frame in audioFrame . |
This overload ignores the SampleRate and FrameLength properties.
To avoid passing the rate and length on each call, use the HasSpeech(IntPtr)
overload instead.