Skip to content
Related Articles

Related Articles

Improve Article

How to use aplay and spd-say command in Linux?

  • Last Updated : 03 Aug, 2021

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: 

 



aplay-command-in-Linux

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. Basically, this works as text to speech converter. 

Syntax: 
 

spd-say "Your text"

Example: 

 

spd-say-command-in-Linux

 

My Personal Notes arrow_drop_up
Recommended Articles
Page :