How To Install libgsm-tools on Ubuntu 18.04

In this tutorial we learn how to install libgsm-tools on Ubuntu 18.04. libgsm-tools is User binaries for a GSM speech compressor

Introduction

In this tutorial we learn how to install libgsm-tools on Ubuntu 18.04.

What is libgsm-tools

libgsm-tools is:

This package contains user binaries for libgsm, an implementation of the European GSM 06.10 provisional standard for full-rate speech transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse excitation/long term prediction) coding at 13 kbit/s.

GSM 06.10 compresses frames of 160 13-bit samples (8 kHz sampling rate, i.e. a frame rate of 50 Hz) into 260 bits; for compatibility with typical UNIX applications, our implementation turns frames of 160 16-bit linear samples into 33-byte frames (1650 Bytes/s). The quality of the algorithm is good enough for reliable speaker recognition; even music often survives transcoding in recognizable form (given the bandwidth limitations of 8 kHz sampling rate).

The interfaces offered are a front end modelled after compress(1), and a library API. Compression and decompression run faster than realtime on most SPARCstations. The implementation has been verified against the ETSI standard test patterns.

There are three methods to install libgsm-tools on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libgsm-tools Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libgsm-tools using apt-get by running the following command:

sudo apt-get -y install libgsm-tools

Install libgsm-tools Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libgsm-tools using apt by running the following command:

sudo apt -y install libgsm-tools

Install libgsm-tools Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libgsm-tools using aptitude by running the following command:

sudo aptitude -y install libgsm-tools

How To Uninstall libgsm-tools on Ubuntu 18.04

To uninstall only the libgsm-tools package we can use the following command:

sudo apt-get remove libgsm-tools

Uninstall libgsm-tools And Its Dependencies

To uninstall libgsm-tools and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libgsm-tools

Remove libgsm-tools Configurations and Data

To remove libgsm-tools configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libgsm-tools

Remove libgsm-tools configuration, data, and all of its dependencies

We can use the following command to remove libgsm-tools configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libgsm-tools

References

Summary

In this tutorial we learn how to install libgsm-tools package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.