Interface ISpeexDSPPreprocessor
A Speexdsp echo preprocessor interface.
Inherited Members
Namespace: SpeexDSPSharp.Core.Interfaces
Assembly: SpeexDSPSharp.Core.dll
Syntax
public interface ISpeexDSPPreprocessor : IDisposable
Methods
| Edit this page View SourceCtl<T>(PreprocessorCtl, ref T)
Performs a ctl request.
Declaration
int Ctl<T>(PreprocessorCtl request, ref T value) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| PreprocessorCtl | request | The request you want to specify. |
| T | value | The input/output value. |
Returns
| Type | Description |
|---|---|
| int |
Type Parameters
| Name | Description |
|---|---|
| T | The type you want to input/output. |
EstimateUpdate(byte[])
Update preprocessor state, but do not compute the output.
Declaration
void EstimateUpdate(byte[] x)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | x | Audio sample vector (in only). Must be same size as specified in SpeexDSPPreprocessor(int, int). |
EstimateUpdate(short[])
Update preprocessor state, but do not compute the output.
Declaration
void EstimateUpdate(short[] x)
Parameters
| Type | Name | Description |
|---|---|---|
| short[] | x | Audio sample vector (in only). Must be same size as specified in SpeexDSPPreprocessor(int, int). |
EstimateUpdate(float[])
Update preprocessor state, but do not compute the output.
Declaration
void EstimateUpdate(float[] x)
Parameters
| Type | Name | Description |
|---|---|---|
| float[] | x | Audio sample vector (in only). Must be same size as specified in SpeexDSPPreprocessor(int, int). |
Run(byte[])
Preprocess a frame.
Declaration
int Run(byte[] x)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | x | Audio sample vector (in and out). Must be same size as specified in SpeexDSPPreprocessor(int, int). |
Returns
| Type | Description |
|---|---|
| int | Bool value for voice activity (1 for speech, 0 for noise/silence), ONLY if VAD turned on. |
Run(short[])
Preprocess a frame.
Declaration
int Run(short[] x)
Parameters
| Type | Name | Description |
|---|---|---|
| short[] | x | Audio sample vector (in and out). Must be same size as specified in SpeexDSPPreprocessor(int, int). |
Returns
| Type | Description |
|---|---|
| int | Bool value for voice activity (1 for speech, 0 for noise/silence), ONLY if VAD turned on. |
Run(float[])
Preprocess a frame.
Declaration
int Run(float[] x)
Parameters
| Type | Name | Description |
|---|---|---|
| float[] | x | Audio sample vector (in and out). Must be same size as specified in SpeexDSPPreprocessor(int, int). |
Returns
| Type | Description |
|---|---|
| int | Bool value for voice activity (1 for speech, 0 for noise/silence), ONLY if VAD turned on. |