Blame doc/speexrate.txt

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