summaryrefslogtreecommitdiffstats
path: root/doc/speexdsp.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/speexdsp.txt')
-rw-r--r--doc/speexdsp.txt54
1 files changed, 54 insertions, 0 deletions
diff --git a/doc/speexdsp.txt b/doc/speexdsp.txt
new file mode 100644
index 0000000..875fc19
--- /dev/null
+++ b/doc/speexdsp.txt
@@ -0,0 +1,54 @@
+Speex Preprocessing Plugin
+==========================
+
+This plugin provides a pre-processing of a mono stream like denoise
+using libspeex DSP API. You can use the plugin with the plugin type
+"speex" like below:
+
+ pcm.my_pcm {
+ type speex
+ slave.pcm "default"
+ }
+
+Then record like
+
+ % arecord -fdat -c1 -Dplug:speex foo.wav
+
+so that you'll get 48kHz mono stream with the denoising effect.
+
+Right now, the plugin supports only a mono stream.
+The accepted format is only S16.
+
+The following parameters can be set optionally:
+
+* frames
+
+ This controls the frames of the intermediate buffer. This
+ corresponds to the latency of the filter. As default it's 64.
+
+* denoise
+
+ A boolean value to enable/disable the denoise function. Default is
+ yes.
+
+* agc
+
+ A boolean value to enable/disable the auto-gain control function.
+ Default is no.
+
+* agc_level
+
+ A float value for the automatic gain-control level. Default is 8000.
+
+* dereverb
+
+ A boolean value to enable/disable dereverb function. Default is no.
+
+For example, you can enable agc like
+
+ pcm.my_pcm {
+ type speex
+ slave.pcm "default"
+ agc 1
+ agc_level 8000
+ }