Blame doc/speexrate.txt

Packit 675970
Rate Converter Plugin Using Speex Resampler
Packit 675970
===========================================
Packit 675970
Packit 675970
The plugin in rate subdirectory is an external rate converter using
Packit 675970
the Speex resampler (aka Public Parrot Hack) by Jean-Marc Valin.  You can 
Packit 675970
use this rate converter plugin by defining a rate PCM with "converter" 
Packit 675970
parameter, such as:
Packit 675970
Packit 675970
	pcm.my_rate {
Packit 675970
		type rate
Packit 675970
		slave.pcm "hw"
Packit 675970
		converter "speexrate"
Packit 675970
	}
Packit 675970
Packit 675970
The plug plugin has also a similar field, "rate_converter".
Packit 675970
Packit 675970
Or, more easily, define a global variable "defaults.pcm.rate_converter",
Packit 675970
which is used as the default converter type by plug and rate plugins:
Packit 675970
Packit 675970
	defaults.pcm.rate_converter "speexrate"
Packit 675970
Packit 675970
Write the above in your ~/.asoundrc or /etc/asound.conf.
Packit 675970
Packit 675970
The following converter types are available:
Packit 675970
Packit 675970
  - speexrate_best	Use quality 10 (equivalent to SRC_SINC_BEST_QUALITY)
Packit 675970
  - speexrate_medium	Use quality 5 (equivalent to SRC_SINC_MEDIUM_QUALITY)
Packit 675970
  - speexrate		Use quality 3 (equivalent to SRC_SINC_FASTEST)
Packit 675970