Per Jessen wrote:
Carlos E. R. wrote:
Hi,
I want to play a sound from a script, for example to signal it finished, but I can't.
First problem: I can't find a CLI command able to play the sound files I want, found in the default installed system:
er@Erebor4:~> aplay /usr/share/sounds/freedesktop/stereo/bell.oga Playing raw data '/usr/share/sounds/freedesktop/stereo/bell.oga' : Unsigned 8 bit, Rate 8000 Hz, Mono ^CAborted by signal Interrupt... cer@Erebor4:~>
This command produces horrible noise with any .oga file I try.
I was going to say 'aplay', I used that in my voip conversion project. Playing .oga or midi produces horrible results, but .wav worked fine.
According to the man page, aplay doesn't play ogg formats, only voc, wav, raw and au. Using ffmpeg, I converted one of the .oga files to .wav and played it with aplay, worked fine. (albeit on leap 15.2). -- Per Jessen, Zürich (3.2°C)