DSD Sound Output issue - Ubuntu 16.04

Status
Not open for further replies.

stillline1979

Member
Joined
Apr 5, 2018
Messages
13
Location
Los Angeles
I have a uniden bearcta scanner with a discriminator output mod. It wokrs perfectly decoding audio with DSDplus in windows.

However when I try to use it with DSplus in Linux i get the error

Syncing voice output stream
An error occured while using the portaudio output stream
Error number: -9983
Error message: Stream is stopped


Below is the the output of the command dsd -a. Any help with this would be greatly appreciated. I really need this to work in ubunut as my windows machine is busy doing other things that actually pay the bills.









matthew@matthew-OptiPlex-745:~$ dsd -a
Digital Speech Decoder 1.7.0-dev (build:v1.6.0-86-g7ee04e5)
mbelib version 1.3.0
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock

PortAudio version number = 1899
PortAudio version text = 'PortAudio V19-devel (built Aug 11 2015 07:04:31)'
Number of devices = 9
--------------------------------------- device #0
Name = HDA Intel: AD1983 Analog (hw:0,0)
Host API = ALSA
Max inputs = 2, Max outputs = 2
Default sample rate = 44100.00
--------------------------------------- device #1
Name = sysdefault
Host API = ALSA
Max inputs = 128, Max outputs = 128
Default sample rate = 48000.00
--------------------------------------- device #2
Name = front
Host API = ALSA
Max inputs = 0, Max outputs = 2
Default sample rate = 44100.00
--------------------------------------- device #3
Name = surround40
Host API = ALSA
Max inputs = 0, Max outputs = 2
Default sample rate = 44100.00
--------------------------------------- device #4
Name = surround51
Host API = ALSA
Max inputs = 0, Max outputs = 2
Default sample rate = 44100.00
--------------------------------------- device #5
Name = surround71
Host API = ALSA
Max inputs = 0, Max outputs = 2
Default sample rate = 44100.00
--------------------------------------- device #6
Name = pulse
Host API = ALSA
Max inputs = 32, Max outputs = 32
Default sample rate = 44100.00
--------------------------------------- device #7
Name = dmix
Host API = ALSA
Max inputs = 0, Max outputs = 2
Default sample rate = 48000.00
--------------------------------------- device #8
[ Default Input, Default Output ]
Name = default
Host API = ALSA
Max inputs = 32, Max outputs = 32
Default sample rate = 44100.00
----------------------------------------------
 

slicerwizard

Member
Joined
Sep 19, 2002
Messages
7,643
Location
Toronto, Ontario
There is no software called DSplus that I'm aware of.

If you're able to use DSDPlus under Windows, any reason you're not using it on Linux? I suspect it'll run ok under Wine. Seems like it'd be worth a shot.
 

SDRPlayer

Member
Premium Subscriber
Joined
Jul 22, 2016
Messages
185
dsd+ does run under wine, but audio is open (no squelch). If there is a setting to get around that, i would love to know.
 

stillline1979

Member
Joined
Apr 5, 2018
Messages
13
Location
Los Angeles
@slicerwizard

I am using it in Ubuntui 16.04 LTS. I posted the command line output in my originals post.

Any idead why it would have issues outputting sound in Linux. The specific error is


Syncing voice output stream
An error occured while using the portaudio output stream
Error number: -9983
Error message: Stream is stopped

@SDRplayer

I have no issues using DSDPlus in linux when I use an SDR as the input. You may need ti update to the latest version of MBElib. I remember having to go through multiple tutorials to install DSD on ubuntu. Some of them just didnt wokr on my machine.

The issue I am having now is that DSD plus doesnt seem to like to output audio when I am using a line input from my modified bearcat.
 
Last edited by a moderator:

ki4hyf

Member
Premium Subscriber
Joined
Mar 2, 2005
Messages
100
Location
Jackson, TN
There seems to be some confusion about DSD versions. DSD is open source software that can be compiled to run natively on Linux. DSD+ is not open source software, and it is designed to run on MS Windows. The way I run DSD on Linux with a discriminator tapped scanner is with the port audio digital sound processor wrapper. The command line is something similar to:
padsp dsd -ipa:8 -s
Try wrapping it with padsp and use the default input (like your device #8 in your example) with whatever other arguments you need for the best sound. You may need to run "padsp dsd -a" to see the default input, as it could change because of the padsp wrap.
 

stillline1979

Member
Joined
Apr 5, 2018
Messages
13
Location
Los Angeles
@ki4hyf

Thank you for your reply. This command is working perfectly now. Can you explain what "-s" does? I also like the ascii art output in the command line.

-Matt
 

stillline1979

Member
Joined
Apr 5, 2018
Messages
13
Location
Los Angeles
Need some more command line advice

@ki4hyf

So the command you gave me for DSD a few weeks ago is still working perfectly decoding p25 on my old Dell OptiPlex. I've been using it to listen to the D-Star roundtable on the PAPA system while I study for my technician's ticket.

My next project is trying to get rtl_fm + dsd working on a raspberry pi.

I've gotten pretty far and I'm actually seeing some good decode on on the pi but I have the same problem again where it says " an error occured while using the portaudio output stream error number: -9983"

The command I am using on the pi is below any help you could provide would be greatly appreciated.

rtl_fm -f 506.73750M -g 45 -s 16k | sox -t raw -r 16k -b 16 -c 1 -e signed-integer - -r 48k -t raw - | dsd -i - -o pa:2



Full Command Line output

pi@raspberrypi:~ $ rtl_fm -f 506.73750M -g 45 -s 16k | sox -t raw -r 16k -b 16 -c 1 -e signed-integer - -r 48k -t raw - | dsd -i - -o pa:2
Found 1 device(s):
Digital Speech Decoder 1.7.0-dev (build:v1.6.0-86-g7ee04e5)
mbelib version 1.3.0
Initializing portaudio.
0: Realtek, RTL2838UHIDIR, SN: 00000001

ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe

Using portaudio device 2.
Name = sysdefault
Audio Out Device: pa:2
Audio In Device: -
Found Rafael Micro R820T tuner
Tuner gain set to 44.50 dB.
Tuned to 506989500 Hz.
Oversampling input by: 63x.
Oversampling output by: 1x.
Buffer size: 8.13ms
Exact sample rate is: 1008000.009613 Hz
Allocating 15 zero-copy buffers
Sampling at 1008000 S/s.
Output at 16000 Hz.

Error number: -9983
Error message: Stream is stopped
An error occured while using the portaudio output stream
Error number: -9983
Error message: Stream is stopped
An error occured while using the portaudio output stream
Error number: -9983
Error message: Stream is stopped
An error occured while using the portaudio output stream
Error number: -9983
Error message: Stream is stopped
An error occured while using the portaudio output stream
Error number: -9983
Error message: Stream is stopped
An error occured while using the portaudio output stream
Error number: -9983
Error message: Stream is stopped
An error occured while using the portaudio output stream
 
Status
Not open for further replies.
Top