Jump to content

Adaptive Multi-Rate audio codec: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
added small usage
Line 85: Line 85:
* [[Audacity (audio editor)|Audacity]] (beta version 1.3) via the FFmpeg integration libraries<ref name="audacity-amr">Retrieved on 2010-02-28</ref>
* [[Audacity (audio editor)|Audacity]] (beta version 1.3) via the FFmpeg integration libraries<ref name="audacity-amr">Retrieved on 2010-02-28</ref>
* [[FFmpeg]] with OpenCORE AMR libraries<ref name="ffmpeg-amr">[http://www.ffmpeg.org/general.html FFmpeg General Documentation - AMR external library], Retrieved on 2009-07-08</ref>
* [[FFmpeg]] with OpenCORE AMR libraries<ref name="ffmpeg-amr">[http://www.ffmpeg.org/general.html FFmpeg General Documentation - AMR external library], Retrieved on 2009-07-08</ref>
* [[Android (operating system)|Android]]<ref name="android-amr">[http://android.git.kernel.org/?p=platform/external/opencore.git;a=tree;f=codecs_v2/audio/gsm_amr;hb=HEAD Android AMR codecs], Retrieved on 2009-07-08{{Dead link|date=October 2012}}</ref>
* [[Android (operating system)|Android]]<ref name="android-amr">[http://android.git.kernel.org/?p=platform/external/opencore.git;a=tree;f=codecs_v2/audio/gsm_amr;hb=HEAD Android AMR codecs], Retrieved on 2009-07-08{{Dead link|date=October 2012}}</ref> Used for voice recorder.
* [http://www.penguin.cz/~utx/amr AMR Codecs as Shared Libraries] - amrnb and amrwb libraries development site. These libraries are based on the reference implementation and were created to prevent embedding of possibly patented source code into many open source projects.
* [http://www.penguin.cz/~utx/amr AMR Codecs as Shared Libraries] - amrnb and amrwb libraries development site. These libraries are based on the reference implementation and were created to prevent embedding of possibly patented source code into many open source projects.
* Open source software to convert the .amr format: [http://sourceforge.net/projects/retrocode/ RetroCode], [http://sourceforge.net/projects/amr2wav/ Amr2Wav], both are in an early developmental stage
* Open source software to convert the .amr format: [http://sourceforge.net/projects/retrocode/ RetroCode], [http://sourceforge.net/projects/amr2wav/ Amr2Wav], both are in an early developmental stage

Revision as of 21:09, 8 November 2012

Adaptive Multi-Rate (AMR)
Filename extension
.amr
Internet media type
audio/amr, audio/3gpp, audio/3gpp2
Initial release23 June 1999 (1999-06-23)[1][2]
Latest release
9.0.0
18 December 2009; 14 years ago (2009-12-18)
Type of formatAudio compression format, audio file format

The Adaptive Multi-Rate (AMR or AMR-NB) audio codec is a patented audio data compression scheme optimized for speech coding. AMR was adopted as the standard speech codec by 3GPP in October 1999 and is now widely used in GSM[3] and UMTS. It uses link adaptation to select from one of eight different bit rates based on link conditions.

AMR is also a file format for storing spoken audio using the AMR codec. Many modern mobile telephone handsets can store short audio recordings in the AMR format, and both free and proprietary programs exist (see Software support) to convert between this and other formats, although AMR is a speech format and is unlikely to give ideal results for other audio. The common filename extension is .amr. There also exists another storage format for AMR that is suitable for applications with more advanced demands on the storage format, like random access or synchronization with video. This format is the 3GPP-specified 3GP container format based on ISO base media file format.[4]

Usage

The frames contain 160 samples and are 20 milliseconds long.[1] AMR uses various techniques, such as ACELP, DTX, VAD and CNG. The usage of AMR requires optimized link adaptation that selects the best codec mode to meet the local radio channel and capacity requirements. If the radio conditions are bad, source coding is reduced and channel coding is increased. This improves the quality and robustness of the network connection while sacrificing some voice clarity. In the particular case of AMR this improvement is somewhere around S/N = 4-6 dB for usable communication. The new intelligent system allows the network operator to prioritize capacity or quality per base station.

There are a total of 14 modes of the AMR codec, 8 are available in a full rate channel (FR) and 6 on a half rate channel (HR).

Mode Bitrate (kbit/s) Channel Compatible with
AMR_12.20 12.20 FR ETSI GSM enhanced full rate
AMR_10.20 10.20 FR
AMR_7.95 7.95 FR/HR
AMR_7.40 7.40 FR/HR TIA/EIA IS-641 TDMA enhanced full rate
AMR_6.70 6.70 FR/HR ARIB 6.7 kbit/s enhanced full rate
AMR_5.90 5.90 FR/HR
AMR_5.15 5.15 FR/HR
AMR_4.75 4.75 FR/HR
AMR_SID 1.80 FR/HR

Features

  • Sampling frequency 8 kHz/13-bit (160 samples for 20 ms frames), filtered to 200–3400 Hz.
  • The AMR codec uses eight source codecs with bit-rates of 12.2, 10.2, 7.95, 7.40, 6.70, 5.90, 5.15 and 4.75 kbit/s.
  • Generates frame length of 95, 103, 118, 134, 148, 159, 204, or 244 samples for bit rates 4.75, 5.15, 5.90, 6.70, 7.40, 7.95, 10.2, or 12.2 kbit/s, respectively
  • AMR utilizes Discontinuous Transmission (DTX), with Voice Activity Detection (VAD) and Comfort Noise Generation (CNG) to reduce bandwidth usage during silence periods
  • Algorithmic delay is 20 ms per frame. For bit-rates of 12.2, there is no 'algorithm' look-ahead delay. For other rates, look-ahead delay is 5 ms. Note that there is 5 ms 'dummy' look-ahead delay, to allow seamless frame-wise mode switching with the rest of rates.
  • AMR is a hybrid speech coder which uses Algebraic Code Excited Linear Prediction (ACELP)
  • The complexity of the algorithm is rated at 5, using a relative scale where G.711 is 1 and G.729a is 15.
  • PSQM testing under ideal conditions yields Mean Opinion Scores of 4.14 for AMR (12.2 kbit/s), compared to 4.45 for G.711 (u-law)
  • PSQM testing under network stress yields Mean Opinion Scores of 3.79 for AMR (12.2 kbit/s), compared to 4.13 for G.711 (u-law)

Licensing and patent issues

AMR codecs incorporate several patents of Nokia Corporation, Telefonaktiebolaget L. M. Ericsson, VoiceAge Corporation and Nippon Telegraph and Telephone Corporation.[5][6] VoiceAge Corporation is the License Administrator for the AMR and AMR-WB+ patent pools. VoiceAge also accepts submission of patents for determination of their possible essentiality to these standards.[7][8]

The initial fee for professional content creation tools and "real-time channel" products is 6,500 USD. The minimum annual royalty is $10,000, which (in the first year) excludes the initial fee. Per-channel license fees fall from $0.99 to $0.50 with volume, up to a maximum of $2 million annually.[5][6]

In the category of personal computer products (e.g. media players), the AMR decoder is licensed for free. The license fee for a sold encoder falls from $0.40 to $0.30 with volume, up to a maximum of $300,000 annually. The minimum annual royalty is not applied to licensed products which fall under the category of personal computer products and use only the free decoder.[5][6]

More information:

Software support

  • 3GPP TS 26.073 - AMR speech Codec (C source code) - reference implementation[9]
  • Audacity (beta version 1.3) via the FFmpeg integration libraries[10]
  • FFmpeg with OpenCORE AMR libraries[11]
  • Android[12] Used for voice recorder.
  • AMR Codecs as Shared Libraries - amrnb and amrwb libraries development site. These libraries are based on the reference implementation and were created to prevent embedding of possibly patented source code into many open source projects.
  • Open source software to convert the .amr format: RetroCode, Amr2Wav, both are in an early developmental stage
  • AMR Player is freeware to play AMR audio files, and can convert AMR from/to MP3/WAV audio format.
  • Nokia Multimedia Converter 2.0 can convert (create) samples, one can use Nokia's conversion tool to create both .amr and .awb files. It works in Windows 7 as well if the setup is run in XP compatibility mode.
  • media.io online conversion service (no need to install anything)
  • MPlayer (SMPlayer, KMPlayer)
  • QuickTime Player and multimedia framework
  • RealPlayer version 11 and later
  • VLC media player version 1.1.0 and later
  • ffdshow
  • Apple iPhone (can play back AMR files)
  • BlackBerry smartphones (uses for voice recorder file format)
  • K-Lite Codec Pack

See also

References

  1. ^ a b 3GPP. "3GPP TS 26.090 - Mandatory Speech Codec speech processing functions; Adaptive Multi-Rate (AMR) speech codec; Transcoding functions". Retrieved 2010-07-21.{{cite web}}: CS1 maint: numeric names: authors list (link)
  2. ^ 3GPP. "3GPP TS 26.090 - Mandatory Speech Codec speech processing functions; Adaptive Multi-Rate (AMR) speech codec; Transcoding functions". Retrieved 2010-07-21.{{cite web}}: CS1 maint: numeric names: authors list (link)
  3. ^ http://www.eetimes.com/electronics-news/4139026/Sorting-Through-GSM-Codecs-A-Tutorial
  4. ^ RFC 4867 - RTP Payload Format and File Storage Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB) Audio Codecs Page 35
  5. ^ a b c VoiceAge Corporation (2007-10-14). "AMR Licensing Terms". VoiceAge Corporation. Archived from the original on 2007-10-14. Retrieved 2009-09-12. Cite error: The named reference "voiceage-amr_licterms" was defined multiple times with different content (see the help page).
  6. ^ a b c VoiceAge Corporation (2007-06). "AMR Licensing Terms". VoiceAge Corporation. Retrieved 2009-09-12. {{cite web}}: Check date values in: |date= (help)
  7. ^ VoiceAge Corporation. "Licensing - Patent Calls". VoiceAge Corporation. Retrieved 2009-09-12.
  8. ^ VoiceAge Corporation (2007-10-14). "Licensing - Patent Calls". Archive.org. Archived from the original on 2007-10-14. Retrieved 2009-09-12.
  9. ^ 3GPP (2008-12-11) 3GPP TS 26.073 - AMR speech Codec, Retrieved 2009-09-08
  10. ^ Retrieved on 2010-02-28
  11. ^ FFmpeg General Documentation - AMR external library, Retrieved on 2009-07-08
  12. ^ Android AMR codecs, Retrieved on 2009-07-08[dead link]