How To Install gtts on Fedora 36

In this tutorial we learn how to install gtts in Fedora 36. gtts is Create an mp3 file from spoken text via the Google TTS API

Introduction

In this tutorial we learn how to install gtts on Fedora 36.

What is gtts

gTTS (Google Text to Speech) Create an mp3 file with the gtts-cli command line utility. It allows unlimited lengths to be spoken by tokenizing long sentences where the speech would naturally pause.

We can use yum or dnf to install gtts on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install gtts.

Install gtts on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install gtts using dnf by running the following command:

sudo dnf -y install gtts

Install gtts on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install gtts using yum by running the following command:

sudo yum -y install gtts

How To Uninstall gtts on Fedora 36

To uninstall only the gtts package we can use the following command:

sudo dnf remove gtts

gtts Package Contents on Fedora 36

/usr/bin/gtts-cli

References

Summary

In this tutorial we learn how to install gtts on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).