The officially official Devuan Forum!

You are not logged in.

#1 2022-04-02 04:41:43

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 114  

[SOLVED] Generate a sound / beep / tts from CLI ?

Hi everyone,

I'm testing a script and a beep (or any sound would help in my debugging ) beep seem not to be installed by default.

is there any other command than can generate a sound from the CLI  ? (a beep, playing a file, speaking trough TTS..)

Thanks..


Linux noob, plz be kind big_smile

Offline

#2 2022-04-02 04:44:30

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 114  

Re: [SOLVED] Generate a sound / beep / tts from CLI ?

Oh ! I found already one method !

spd-say "The text to be TTS"

smile


Linux noob, plz be kind big_smile

Offline

#3 2022-04-02 09:29:59

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] Generate a sound / beep / tts from CLI ?

For a simple beep try

printf '\a'

There's also aplay(1) & speaker-test(1) from the alsa-utils package for music files and random noise, respectively.


Brianna Ghey — Rest In Power

Offline

#4 2022-04-07 08:26:11

sudo
Member
Registered: 2022-04-06
Posts: 16  

Re: [SOLVED] Generate a sound / beep / tts from CLI ?

echo -e "\a"
It's as simple as that!

Last edited by sudo (2022-04-07 08:28:50)

Offline

Board footer