How to play amr audio files on ubuntu 22. 04

How to Play AMR Audio Files on Ubuntu 22.04

In this guide, we will demonstrate how to play the AMR audio files on Ubuntu 22.04.

Prerequisites:

To perform the steps that are demonstrated in this guide, you need the following components:

AMR Audio

In software, an audio codec refers to the program (or implementation of an algorithm) that’s responsible for compressing and decompressing the digital audio from a given audio file. The primary goal of any audio codec is to deliver a high-quality audio with the minimum number of bits.

Sponsored

AMR (Adaptive Multi-Rate) is an audio codec that specializes in speech coding. It’s a multi-rate narrowband speech codec that encodes the narrowband signals at variable bit rates.

The audio files that use the AMR codec come with the “.AMR” file extension. To play these audio files, we need the proper audio codec and/or audio player installed on the system.

Playing AMR on Ubuntu

There are a couple of ways that we can play an AMR file on Ubuntu. We can use a suitable audio player or convert the AMR file to a different format.

See also  Design and Web team summary – 22 October 2021

For demonstration purposes, we grabbed a dummy AMR audio file:

$ stat demo.amr

How to play amr audio files on ubuntu 22. 04 1

AMR Audio Player

The VLC media player is a popular free and open-source multimedia player that supports a wide range of media file formats (including AMR audio). It can also work with CDs, DVDs, and various streaming protocols. If you have anything related to multimedia, one possible chance is that VLC is going to work with it.

By default, Ubuntu comes with VLC pre-installed. However, if you don’t have the VLC installed, use the following commands to install it right away:

$ sudo apt update

How to play amr audio files on ubuntu 22. 04 2

$ sudo apt install vlc

How to play amr audio files on ubuntu 22. 04 3

Now, we can play the AMR file. Start the VLC media player:

How to play amr audio files on ubuntu 22. 04 4

From the main window, go to Media >> Open File or use the “Ctrl + O” keyboard shortcut.

How to play amr audio files on ubuntu 22. 04 5

Select the AMR file from the local directory:

How to play amr audio files on ubuntu 22. 04 6

Sponsored

VLC should now start playing the audio file.

How to play amr audio files on ubuntu 22. 04 7

Besides VLC, there are other audio players that you should check out. For example: Audacious, Sayonara, MPV, etc.

Converting AMR to a Different Format

Compared to other audio file formats (MP3, for example), AMR is not common. There’s a chance that you may not be able to play it on a different media player or device. In that case, we can convert the AMR audio to a more common format; for example, MP3.

For media file conversion, we will use FFmpeg, a well-known tool for managing the media files. It’s a free and open-source software that supports numerous file formats and codecs. It can encode, decode, transcode, mux, demux, stream, filter, and play almost all media file formats. Learn more about FFmpeg.

To install FFmpeg on Ubuntu, run the following commands:

$ sudo apt update

How to play amr audio files on ubuntu 22. 04 8

$ sudo apt install ffmpeg

How to play amr audio files on ubuntu 22. 04 9

The following command verifies if the installation is successful:

$ ffmpeg -version

How to play amr audio files on ubuntu 22. 04 10

We can now convert the AMR file to our desired file format. The following command converts the AMR audio file to MP3:

$ ffmpeg -i demo.amr demo.mp3

How to play amr audio files on ubuntu 22. 04 11

Here:

  • The “i” flag indicates the input file – “demo.amr”.
  • From the output file name “demo.mp3”, FFmpeg automatically applies the necessary configuration. There is no need to manually specify the codecs, bit rate, and other properties.

Depending on the file size and hardware resources, this process may take some time. Once finished, we will have the MP3 file at hand.

$ stat demo.mp3

How to play amr audio files on ubuntu 22. 04 12

Conclusion

We showcased the various ways of playing the AMR audio file on Ubuntu. The AMR audio codec specializes in capturing human speech. We can play any AMR audio file with the right media player. For better compatibility, however, we can also convert it to MP3 or to a different file format.

Leave a Comment

Only people in my network can comment.