Amr encoding for iOS