Speex implementation where the header format can be set statically by parameters if it is not detected.