
Hello, In the Message; Subject : [oS-en] How can I play a sound from a script? Message-ID : <56e6e016-af14-49fb-6ee0-5733377d284b@telefonica.net> Date & Time: Fri, 21 Jan 2022 13:21:33 +0100 [CER] == "Carlos E. R." <robin.listas@telefonica.net> has written: CER> Hi, CER> I want to play a sound from a script, for example to signal it finished, but I CER> can't. CER> First problem: I can't find a CLI command able to play the sound files I want, CER> found in the default installed system: er@Erebor4:~> aplay /usr/share/sounds/freedesktop/stereo/bell.oga CER> Playing raw data '/usr/share/sounds/freedesktop/stereo/bell.oga' : Unsigned 8 CER> bit, Rate 8000 Hz, Mono CER> ^CAborted by signal Interrupt... CER> cer@Erebor4:~> CER> This command produces horrible noise with any .oga file I try. For oga files, it is best to use ogg123, which is included in vorbis-tools. Regards. --- ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp ┃\/彡 ┗━━┛ "Tim Cook, the C.E.O. of Apple, said earlier this year that he would not let his nephew join social networks. Bill Gates banned cellphone until his children were teenagers, and Melinda Gates wrote that she wished they had waited even longer. Steve Jobs would not let his young children near iPads." -- The New York Times --