| 1 |
Speex Preprocessing Plugin |
| 2 |
========================== |
| 3 |
|
| 4 |
This plugin provides a pre-processing of a mono stream like denoise |
| 5 |
using libspeex DSP API. You can use the plugin with the plugin type |
| 6 |
"speex" like below: |
| 7 |
|
| 8 |
pcm.my_pcm { |
| 9 |
type speex |
| 10 |
slave.pcm "default" |
| 11 |
} |
| 12 |
|
| 13 |
Then record like |
| 14 |
|
| 15 |
% arecord -fdat -c1 -Dplug:my_pcm foo.wav |
| 16 |
|
| 17 |
so that you'll get 48kHz mono stream with the denoising effect. |
| 18 |
|
| 19 |
Right now, the plugin supports only a mono stream. |
| 20 |
The accepted format is only S16. |
| 21 |
|
| 22 |
The following parameters can be set optionally: |
| 23 |
|
| 24 |
* frames |
| 25 |
|
| 26 |
This controls the frames of the intermediate buffer. This |
| 27 |
corresponds to the latency of the filter. As default it's 64. |
| 28 |
|
| 29 |
* denoise |
| 30 |
|
| 31 |
A boolean value to enable/disable the denoise function. Default is |
| 32 |
yes. |
| 33 |
|
| 34 |
* agc |
| 35 |
|
| 36 |
A boolean value to enable/disable the auto-gain control function. |
| 37 |
Default is no. |
| 38 |
|
| 39 |
* agc_level |
| 40 |
|
| 41 |
A float value for the automatic gain-control level. Default is 8000. |
| 42 |
|
| 43 |
* dereverb |
| 44 |
|
| 45 |
A boolean value to enable/disable dereverb function. Default is no. |
| 46 |
|
| 47 |
* echo |
| 48 |
|
| 49 |
A boolean value to enable/disable echo-cancellation function. |
| 50 |
Default is no. |
| 51 |
|
| 52 |
* filter_length |
| 53 |
|
| 54 |
Number of samples of echo to cancel. As default it's 256. |
| 55 |
|
| 56 |
For example, you can enable agc like |
| 57 |
|
| 58 |
pcm.my_pcm { |
| 59 |
type speex |
| 60 |
slave.pcm "default" |
| 61 |
agc 1 |
| 62 |
agc_level 8000 |
| 63 |
} |