We can send the text to the terminal to play that as an audio clip. These are basically command-line audio player and works using Linux Sound Architecture. To send audio to the terminal to play, you can use aplay and spd-say command as shown below.
1. aplay: This command in linux is used to play the audio file.
Here, the maybe-next-time.wav is the audio file that we are playing. This command is especially for the Advanced Linux Sound Architecture) sound card drivers.
2. spd-say This command in linux is used to play the given text as the sound. Baiscally, this works as text to speech converter.
spd-say "Your text"
- aplay command in Linux with examples
- How to Install and Use Hydra in Linux?
- mindepth and maxdepth in Linux find() command for limiting search to a specific directory.
- enable and disable command in Linux
- Linux Operating System | CLI (Command Line Interface) and GUI (Graphic User Interface)
- Difference between locate, which and find Command in Linux
- Working with zcat, zmore and zless Command in Linux
- Nice and Renice Command in Linux with Examples
- Iperf Command to Test Speed, Performance and Bandwidth of Network in Linux
- How to use Kali Linux in Windows with WSL 2?
- How to find time taken by a command/program on Linux Shell?
- Netstat command in Linux
- Practical applications of 'ls' command in Linux
- 'dd' command in Linux
- 'IPCS' command in Linux with examples
- select command in Linux with examples
- grep command in Unix/Linux
- Sed Command in Linux/Unix with examples
- ZIP command in Linux with examples
- SORT command in Linux/Unix with examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.