]> git.alsa-project.org Git - alsa-plugins.git/blob - doc/speexrate.txt
9f86e030d4b07ee380d8fbdb6f43044698a8ad13
[alsa-plugins.git] / doc / speexrate.txt
1 Rate Converter Plugin Using Speex Resampler
2 ===========================================
3
4 The plugin in rate subdirectory is an external rate converter using
5 the Speex resampler (aka Public Parrot Hack) by Jean-Marc Valin.  You can 
6 use this rate converter plugin by defining a rate PCM with "converter" 
7 parameter, such as:
8
9         pcm.my_rate {
10                 type rate
11                 slave.pcm "hw"
12                 converter "speexrate"
13         }
14
15 The plug plugin has also a similar field, "rate_converter".
16
17 Or, more easily, define a global variable "defaults.pcm.rate_converter",
18 which is used as the default converter type by plug and rate plugins:
19
20         defaults.pcm.rate_converter "speexrate"
21
22 Write the above in your ~/.asoundrc or /etc/asound.conf.
23
24 The following converter types are available:
25
26   - speexrate_best      Use quality 10 (equivalent to SRC_SINC_BEST_QUALITY)
27   - speexrate_medium    Use quality 5 (equivalent to SRC_SINC_MEDIUM_QUALITY)
28   - speexrate           Use quality 3 (equivalent to SRC_SINC_FASTEST)
29