You are not logged in.

#1 2017-04-23 12:59:39

r0b3rt
Member
Registered: 2017-02-24
Posts: 19

[SOLVED] sound *.ogg from terminal

Hello

    I want to play some sound from terminal, when clicked on icon VCL player runs and sound is played correctly but when try ogg123 I have beow error:

[archie@arch Audio]$ ogg123 A.ogg 

Audio Device:   Advanced Linux Sound Architecture (ALSA) output

Playing: A.ogg
Ogg Vorbis stream: 2 channel, 44100 Hz
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ao_alsa ERROR: Unable to open ALSA device 'default' for playback => No such file or directory
ERROR: Cannot open device alsa.

Last edited by r0b3rt (2017-04-23 13:55:43)

Offline

#2 2017-04-23 13:39:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: [SOLVED] sound *.ogg from terminal

If you use pulseaudio, change /etc/libao.conf remove the dev line and change the default_driver= to pulse. If you only use alsa try without the dev line anyway. For some reason libao tries to use some strange parameters with it present

Offline

#3 2017-04-23 13:55:25

r0b3rt
Member
Registered: 2017-02-24
Posts: 19

Re: [SOLVED] sound *.ogg from terminal

Great it works thanks a lot.

Offline

#4 2021-05-23 07:17:10

neostanniy
Member
From: Kyiv, Ukraine
Registered: 2021-04-23
Posts: 27

Re: [SOLVED] sound *.ogg from terminal

Hello everyone!
That's actually a problem. Didn't worked for me. Now it says:

ERROR: Cannot open device pulse.

I've been trying to launch an ogg123 via

-d pulse

, but still the same result. ALSA doesn't works also.

Any ideas of why this is happening?

Thanks!


"Life is what happens to you while you're busy making other plans" © John Winston Ono Lennon.

Offline

#5 2021-05-23 09:43:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: [SOLVED] sound *.ogg from terminal

Please don't hijack 4 year old threads.

This still works, just as I described, remove the dev line and change the default driver. Is pulse actually started? Where are you trying to run this? From somewhere else other than your user?

In any case please open a new thread on this.

Closing.

Last edited by V1del (2021-05-23 09:44:31)

Offline

Board footer

Powered by FluxBB