szechyjs / dsd

Digital Speech Decoder
Other
706 stars 271 forks source link

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

Open Lhotse opened 11 months ago

Lhotse commented 11 months ago

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 commented 8 months ago

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 commented 1 month ago

@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"