How to play a sound at the login on Ubuntu

In this quick tutorial I will show you how to play a sound when the computer is turned on.

First of all we need to install sox:

sudo apt install sox

Then we should install all the necessary libraries:

sudo apt install libsox-fmt-all

We can can convert a text to speech here.

Finally we should add a new entry in the Startup application preferences window:

As command we should insert:

play /path/to/my/sound.mp3