// Instead we now call the other overload which specifies an
// explicit encoding as we know we only support AMR at this
// stage anyway. See VBM:2005040106.
ActivatedVariablePolicy policy = selected.getPolicy();
Variant variant = selected.getVariant();
if (variant == null) {
MediaUtilities.tryAltText(attributes, pageContext, policy,
attributes.getAlt(), aAttributes.getStyles());
} else {
AudioMetaData audio = (AudioMetaData) variant.getMetaData();
// Currently this audio tag is only supported by the MMS_SMIL_2_0
// protocol. This only suports AMR so we need only deal with
// assets that have AMR encoding.
AudioEncoding encoding = audio.getAudioEncoding();