Description | Hierarchy | Fields | Methods | Properties |
type unaSpeexDSP = class(unaObject)
Speex DSP
![]() |
constructor create(const libName: wString = ''); |
![]() |
destructor Destroy(); override; |
![]() |
function open(frameSize, samplingRate: int; aec: bool = false): int; |
![]() |
function preprocess(frame: pspx_int16_t): bool; |
![]() |
function resampleDst(srcFrame: pspx_int16_t; var srcSamples: spx_uint32_t; outBuf: pspx_int16_t; outSamplingRate: int; var outBufUsed: spx_uint32_t): uint; |
![]() |
function resampleSrc(srcFrame: pspx_int16_t; var srcSamples: spx_uint32_t; srcSamplingRate: int; outBuf: pspx_int16_t; var outBufUsed: spx_uint32_t): uint; |
![]() |
function lock(timeout: tTimeout = 1000): bool; |
![]() |
procedure close(); |
![]() |
procedure echo_capture(inFrame: pspx_int16_t; outFrame: pspx_int16_t); |
![]() |
procedure echo_playback(frame: pspx_int16_t); |
![]() |
procedure unlock(); |
![]() |
property active: bool read f_active; |
![]() |
property api: pSpeexDSPLibrary_proc read getLib; |
![]() |
property dsp_AGC: bool index 1 read dsp_getBool write dsp_setBool; |
![]() |
property dsp_AGC_level: float read getAcgLvl; |
![]() |
property dsp_AGC_loudness: float read getAcgLdn; |
![]() |
property dsp_denoise: bool index 0 read dsp_getBool write dsp_setBool; |
![]() |
property dsp_dereverb: bool index 3 read dsp_getBool write dsp_setBool; |
![]() |
property dsp_VAD: bool index 2 read dsp_getBool write dsp_setBool; |
![]() |
property error: int read f_error; |
![]() |
property frameSize: int read f_frameSize; |
![]() |
property lastFrameVAD: bool read f_lfv; |
![]() |
property libOK: bool read f_libOK; |
![]() |
property samplingRate: int read f_sps; |
![]() |
constructor create(const libName: wString = ''); |
Creates Speex DSP instance. |
![]() |
destructor Destroy(); override; |
Destroys Speex DSP instance. |
![]() |
function open(frameSize, samplingRate: int; aec: bool = false): int; |
Open DSP instance.
Parameters
Returns0 or errorCode |
![]() |
function preprocess(frame: pspx_int16_t): bool; |
Preprocesses a frame.
Parameters
ReturnsTrue for voice, false for silence/noise (only if VAD is enabled) |
![]() |
function resampleDst(srcFrame: pspx_int16_t; var srcSamples: spx_uint32_t; outBuf: pspx_int16_t; outSamplingRate: int; var outBufUsed: spx_uint32_t): uint; |
![]() |
function resampleSrc(srcFrame: pspx_int16_t; var srcSamples: spx_uint32_t; srcSamplingRate: int; outBuf: pspx_int16_t; var outBufUsed: spx_uint32_t): uint; |
Resamples a frame.
Parameters
Returnsnumber of samples read from srcFrame |
![]() |
function lock(timeout: tTimeout = 1000): bool; |
![]() |
procedure close(); |
Close DSP instance. |
![]() |
procedure echo_capture(inFrame: pspx_int16_t; outFrame: pspx_int16_t); |
![]() |
procedure echo_playback(frame: pspx_int16_t); |
![]() |
procedure unlock(); |
![]() |
property active: bool read f_active; |
![]() |
property api: pSpeexDSPLibrary_proc read getLib; |
Speex proc. |
![]() |
property dsp_AGC: bool index 1 read dsp_getBool write dsp_setBool; |
SPEEX_PREPROCESS_GET_AGC/SPEEX_PREPROCESS_SET_AGC |
![]() |
property dsp_AGC_level: float read getAcgLvl; |
SPEEX_PREPROCESS_GET_AGC_LEVEL/SPEEX_PREPROCESS_SET_AGC_LEVEL |
![]() |
property dsp_AGC_loudness: float read getAcgLdn; |
SPEEX_PREPROCESS_GET_AGC_LOUDNESS /SPEEX_PREPROCESS_SET_AGC_LOUDNESS |
![]() |
property dsp_denoise: bool index 0 read dsp_getBool write dsp_setBool; |
SPEEX_PREPROCESS_GET_DENOISE/SPEEX_PREPROCESS_GET_DENOISE |
![]() |
property dsp_dereverb: bool index 3 read dsp_getBool write dsp_setBool; |
SPEEX_PREPROCESS_GET_VAD/SPEEX_PREPROCESS_SET_VAD |
![]() |
property dsp_VAD: bool index 2 read dsp_getBool write dsp_setBool; |
SPEEX_PREPROCESS_GET_VAD/SPEEX_PREPROCESS_SET_VAD |
![]() |
property error: int read f_error; |
Last error. |
![]() |
property frameSize: int read f_frameSize; |
Frame size (in samples) the DSP was initialized with |
![]() |
property lastFrameVAD: bool read f_lfv; |
True for voice, false for silence/noise (only if VAD is enabled). |
![]() |
property libOK: bool read f_libOK; |
![]() |
property samplingRate: int read f_sps; |
Sampling rate the DSP was initialized with |
(c) 2012 Lake of Soft