How to use aplay and spd-say command in Linux?
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.
Syntax:
aplay filename
Example:

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.
Syntax:
spd-say "Your text"
Example:

Recommended Posts:
- aplay command in Linux with examples
- od command in Linux with example
- who command in Linux
- du Command in LINUX
- 'dd' command in Linux
- SED command in Linux | Set 2
- while command in Linux with example
- fc Command in Linux with Examples
- less command in Linux with Examples
- top command in Linux with Examples
- ex command in Linux with examples
- rm command in Linux with examples
- last command in Linux with Examples
- fmt command in Linux with examples
- ln command in Linux with Examples
- ar command in Linux with examples
- tar command in Linux with examples
- cut command in Linux with examples
- join Command in Linux
- cmp Command in Linux 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 contribute@geeksforgeeks.org. 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.


