What is an AMR file?
The file with .amr extension is an audio data format relevant to Adaptive Multi-Rate audio codec; consists of a multi-rate narrowband speech codec which encodes narrowband signals at 4.75-12.2 kbit/s bit rate with toll quality speech starting at 7.4 kbit/s; uses link adaptation to select from one of eight different bit rates based.
AMR File Format
AMR file format uses many coding techniques, the ACELP (Algebraic Code Excited Linear Prediction) algorithm one of the best technique; designed for compressing human spoken audio in a more efficient way. The AMR was set as the standard voice or speech codec by 3GPP in 1999. The AMR file format is also used to store the spoken audio by using Adaptive Multi-Rate audio codec which is used by many smart phones to store recorded speeches.
File format structure
The AMR( Adaptive Multi-Rate ) is an audio format; widely used in various mobile applications and devices, typically in audio player/recorder or in VoIP kind of applications. AMR can be further classified as:
- AMR-NB( NarrowBand )
- AMR-WB( WideBand )
Usually, AMR refers to AMR-NB. The AMR file format has the following structure:
Each AMR file contains a 6-byte header that recognize the file as an AMR audio. This header is always set to:
This is usually simialr across all AMR-NB files. If the header following a standard, it is likely that the file is corrupted and should not be used. the AMR file consists of a whole number of packed frames of audio. These frames each compose 20ms of audio. Each frame can be encoded using any of the valid AMR-NB modes (0-7, 8 SID in DTX mode). Since, the frames can be encoded at different bit rates, this typical method is called Adaptive Multi-Rate(AMR).
Following are the different AMR modes and their corresponding bitrates:
|0||AMR 4.75 - Encodes at 4.75kbit/s|
|1||AMR 5.15 - Encodes at 5.15kbit/s|
|2||AMR 5.9 - Encodes at 5.9kbit/s|
|3||AMR 6.7 - Encodes at 6.7kbit/s|
|4||AMR 7.4 - Encodes at 7.4kbit/s|
|5||AMR 7.95 - Encodes at 7.95kbit/s|
|6||AMR 10.2 - Encodes at 10.2kbit/s|
|7||AMR 12.2 - Encodes at 12.2kbit/s|
Frame size of AMR modes in bytes (including the header byte) are given below:
|CMR||MODE||FRAME SIZE( in bytes )|