Is it mandatory for VoLTE enabled phone to support g711/g729 codecs in an IMS call?

Hello VoLTE experts,
Can someone help whether it is mandatory for VoLTE enabled phone to support g711/g729 codecs in an IMS call or it has to use only AMR codec when latched in the IMS network?