Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No audio output - An error occured while using the portaudio output stream #134

Open
Lhotse opened this issue Dec 12, 2023 · 2 comments
Open

Comments

@Lhotse
Copy link

Lhotse commented Dec 12, 2023

Hi I'm unable to get any audio output. I'm using the following version of dsd on Ubuntu 22.04.

Digital Speech Decoder 1.7.0-dev (build:v1.6.0-96-g59423fa)
mbelib version 1.3.0

I used the following command to start dsd.

socat stdout udp-listen:7355 | padsp dsd -o pa:6 -i -

It decodes the packets but as soon as it starts to stream the audio output there is an error.

Sync:  +DMR       mod: GFSK inlvl: 16% [SLOT0]  slot1   VOICE e:
Syncing voice output stream
An error occured while using the portaudio output stream
Error number: -9983
Error message: Stream is stopped

I get the same result with default device (Bluetooth headphones) and also when default device is the soundcard output. I've also tried another pair of wireless headphones. None work and all get the same error.

--------------------------------------- device #6
Name = sysdefault
Host API = ALSA
Max inputs = 128, Max outputs = 128
Default sample rate = 48000.00

--------------------------------------- device #1
Name = Logitech G933 Gaming Wireless H: USB Audio (hw:1,0)
Host API = ALSA
Max inputs = 1, Max outputs = 2
Default sample rate = 44100.00

Am I doing something wrong? Any idea how I could fix this problem. Thanks for your time.

@stefan-kuepper
Copy link

Hi,
I think you should remove the "-o pa:6" part so dsd will use the default OSS output which padsp emulates.
Thanks to your issue I learned about padsp and it works for me while any of the pa: outputs failed exactly like yours. Maybe our systems can not play the audio sample rate dsd uses (8kHz).

@kala13x
Copy link

kala13x commented Oct 23, 2024

@stefan-kuepper removing the output device argument as you suggested causes dsd to use default audio device /dev/audio which is no longer supported on modern Linux distributions and causes an error "Error, couldn't open /dev/audio"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants