DSDPlus DSD-1.8.2

adcockfred

Member
Premium Subscriber
Joined
Apr 8, 2010
Messages
366
Location
Aldine, tx.
Help, I have fallen again.
trying to run dsd 1.8.2 on Linux on windows
The unsigned watch you may call it would not let me build Dsd in Linux from that ppa mess.
So I cloned dsd in Linux, and ran dsd in windows.
No audio device in on Linux
No alsa-base and the files were locked in the clone.
 

gary123

Member
Joined
Sep 11, 2002
Messages
1,258
I too had issues trying to build on windows. I have installed the latest cygwin for my OS (32 bit). If anyone has had better luck could you post the command line steps used.

Thanks
 

adcockfred

Member
Premium Subscriber
Joined
Apr 8, 2010
Messages
366
Location
Aldine, tx.
Were your issues on Linux or win ? I wouldn't think those apps in the win store were meant for 32 bit. I was building on a 64 bit machine. It worked better for me in linux to build in a sub directory. I just couldn't force that keyring krap to unauthorize in the windows ubuntu app or the kali app either. Man though I really liked that kali evenover mint. So deductive reasoning would say try that ppa on a straight mint build. I really didn't read anywhere where this was suppose to be just a 32 bit build, except over at fred smarts.
 

lwvmobile

Member
Joined
Apr 26, 2020
Messages
116
Location
Lafayette County, FL
Can't say I've ever had any problems either with adding that ppa to my own linux install, or from building it from source. For me, the issue with DSD has always been getting audio into it, and audio out of it since it uses OSS and/or Port Audio, neither one of which is used by most any linux distro. There are ways to get it to work though. I'll list out all the steps I've used for building dsd from source as well as its mbelib and it++ requirements, and also a round-a-bout way of getting it to play nice with pulse audio.

If possible, on Ubuntu based distros (can't vouch for 20.04, but 18.04, this works)

Code:
sudo add-apt-repository ppa:szechyjs/dsd
sudo apt-get update
sudo apt-get install dsd
If not, build it from source using this:

First, these are the steps verbatim for mbelib, the component that actually does the voice decoding. Keep in mind, that this software MAY infringe on patents by DVSI etc etc. You can see more info on that at the github.

Best to make a folder in your home directory and open your terminal up in there first.

MBELIB
Code:
sudo apt-get update
sudo apt-get install git make cmake wget
git clone https://github.com/szechyjs/mbelib   #(or download and extract the zip file)
cd mbelib                          # Move into source folder
mkdir build                        # Create build directory
cd build                            # Move to build directory
cmake ..                           # Create Makefile for current system
make                                # Compiles the library
sudo make install             # Library is installed into computer
IT++

Code:
sudo apt install wget
wget -O itpp-latest.tar.bz2 http://sourceforge.net/projects/itpp/files/latest/download?source=files
tar xjf itpp-latest.tar.bz2
cd itpp-*
mkdir build && cd build
cmake ..
make -j`nproc`
sudo make install
DSD

Code:
sudo apt install portaudio19-dev libitpp-dev  libsndfile1 libsndfile1-dev
git clone https://github.com/szechyjs/dsd   # (or download and extract the zip file)
cd dsd                              # Move into source folder
mkdir build                       # Create build directory
cd build                            # Move to build directory
cmake ..                           # Create Makefile for current system
make                                # Compiles DSD
sudo make install             # Installs DSD to the system
Note: when you run this sudo apt install, be weary of what it wants to uninstall or remove, I have had issues with portaudio and wine, as in, if you try to install portaudio, it wants to uninstall wine(and other things). I can't be held accountable for what happens if portaudio wants to mess with your setup or breaks your linux desktop. If possible, its better to just add the ppa if using Ubuntu based distros instead of building from source. Either way, good luck. I've built this from source on a Raspberry Pi, that worked fine.

Using DSD.

First, when you got it installed, you'll want to run

Code:
dsd -a
To see the audio devices available. This is what I get.

Code:
PortAudio version number = 1246720
PortAudio version text = 'PortAudio V19.6.0-devel, revision 396fe4b6699ae929d3a685b3ef8a7e97396139a4'
Number of devices = 7
--------------------------------------- device #0
Name                        = HDA ATI HDMI: 0 (hw:0,3)
Host API                    = ALSA
Max inputs = 0, Max outputs = 8
Default sample rate         = 44100.00
--------------------------------------- device #1
Name                        = Microsoft® LifeCam HD-5000: USB Audio (hw:1,0)
Host API                    = ALSA
Max inputs = 1, Max outputs = 0
Default sample rate         = 44100.00
--------------------------------------- device #2
Name                        = Logitech USB Headset: Audio (hw:2,0)
Host API                    = ALSA
Max inputs = 1, Max outputs = 0
Default sample rate         = 44100.00
--------------------------------------- device #3
Name                        = Wireless Stereo Headset: USB Audio (hw:3,0)
Host API                    = ALSA
Max inputs = 1, Max outputs = 2
Default sample rate         = 16000.00
--------------------------------------- device #4
Name                        = hdmi
Host API                    = ALSA
Max inputs = 0, Max outputs = 8
Default sample rate         = 44100.00
--------------------------------------- device #5
Name                        = pulse
Host API                    = ALSA
Max inputs = 32, Max outputs = 32
Default sample rate         = 44100.00
--------------------------------------- device #6
[ Default Input, Default Output ]
Name                        = default
Host API                    = ALSA
Max inputs = 32, Max outputs = 32
Default sample rate         = 44100.00
----------------------------------------------
You'll want to find the device number that has [Default Input, Default Output]

Then, use that like this: pa:6

Code:
padsp -m provoice -- dsd -fp -i pa:6 -o /dev/dsp
That should get audio piped in through the default alsa input, and audio out using padsp to /dev/dsp, which is OSS emulation which pipes back out to pulseaudio. Input and output can't be the same thing or type from my experience, and also, if you specify -w audio.wav on dsd keep in mind, you can't record and listen at the same time. dsd makes terrible sounding low quality wav files anyways, so best just to not use it in my opinion.

if you get stuck anywhere along the way, reply back and copy and paste the output of your terminal so somebody can see what you're talking about instead of just saying 'it didn't work'.
 

lwvmobile

Member
Joined
Apr 26, 2020
Messages
116
Location
Lafayette County, FL
Follow up:

Just realized I missed one thing, at the very top, make sure to also have:

Code:
sudo apt install build-essential
You'll need it to build pretty much any sort of code. That's why its 'buid-essential' :cool:

Also, you can make a virtual audio sink to dump sound into without tying up an audio device (and also not having to listen to loud digital to analog audio) if you make a simple script file you can call on each boot.

Code:
pacmd load-module module-null-sink sink_name=virtual_sink  sink_properties=device.description=Virtual_Sink
That command will create a virtual audio sink called Virtual_Sink, its great for piping audio from one application to the next.

Next, grab pavucontrol Pulse Audio Control, it'll make it easy to pipe audio from one application to the next.

Code:
sudo apt install pavucontrol
Then just run it in terminal with pavucontrol, or open your menu and browse for pulse audio volume control.
In playback, you'll want the application sending audio to play into Virtual Sink, and in the recording tab, you'll want the application to listen to the monitor_of_virtual_sink.

Hope that helps some.
 

Attachments

adcockfred

Member
Premium Subscriber
Joined
Apr 8, 2010
Messages
366
Location
Aldine, tx.
Ok , cool I am off tonight so I can work on dsd.
I shorted out that 2013 gigabyte board and 2 ssd’s night before last.
But I got the little ssd scrubbed and win 10 back on it last night.
Also got Ubuntu and kali back on it.
 

adcockfred

Member
Premium Subscriber
Joined
Apr 8, 2010
Messages
366
Location
Aldine, tx.
Yeah, I had pavucontrol working with gqrx on that big ssd’s I broke.
I had the d-star up too.
But up at the farm I had the hf up on my old toshiba and sdr#
40 meters great.
But now I have a hack rf
 

adcockfred

Member
Premium Subscriber
Joined
Apr 8, 2010
Messages
366
Location
Aldine, tx.
fred@DESKTOP-GVLJLM4:~/dsd/dsd$ dsd -a
Digital Speech Decoder 1.7.0-dev (build:v1.6.0-91-gf175834)
mbelib version 1.3.0
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM sysdefault
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM sysdefault
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM dmix
PortAudio version number = 1246720
PortAudio version text = 'PortAudio V19.6.0-devel, revision 396fe4b6699ae929d3a685b3ef8a7e97396139a4'
Number of devices = 0
---------------------------
 

lwvmobile

Member
Joined
Apr 26, 2020
Messages
116
Location
Lafayette County, FL
No devices? Did you try rebooting after installing? Port Audio might need a reboot after install.
fred@DESKTOP-GVLJLM4
You're not running this under WIndows Subsystem for Linux, are you?

Anyways, what's your output of
Code:
inxi -Fxxxrz
 

adcockfred

Member
Premium Subscriber
Joined
Apr 8, 2010
Messages
366
Location
Aldine, tx.
if i clone dsd from home direcrory and mbe lib from home folder and itpp from home folder
then all 3 clones are of equal and can not see each other right
 

adcockfred

Member
Premium Subscriber
Joined
Apr 8, 2010
Messages
366
Location
Aldine, tx.
no not under win this is kali on win 10 and on big ssd
i had path problems on small ssd eith ubuntu 18
so io scrubbed it and put what ever the lows ubuntu is in windows store
an di figured out what ate that mother board, when acroni loader loaded i had power to scrubbing disk

ready to build another instance on small ssd with ubuntu
ibut i think i will clone itpp and mbelid under dsd folder
what you think?
 

adcockfred

Member
Premium Subscriber
Joined
Apr 8, 2010
Messages
366
Location
Aldine, tx.
fred@DESKTOP-GVLJLM4:~/dsd/dsd/build$ inxl -Fxxxrz
-bash: inxl: command not found
fred@DESKTOP-GVLJLM4:~/dsd/dsd/build$ sudo apt-get install inxl
[sudo] password for fred:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package inxl
fred@DESKTOP-GVLJLM4:~/dsd/dsd/build$ cd ..
fred@DESKTOP-GVLJLM4:~/dsd/dsd$ ls
build cmake CONTRIBUTING.md debian include src
CHANGELOG CMakeLists.txt COPYRIGHT DSD_Author.pgp README.md test
fred@DESKTOP-GVLJLM4:~/dsd/dsd$ cd ..
fred@DESKTOP-GVLJLM4:~/dsd$ ls
dsd itpp-4.3.1 itpp-latest.tar.bz2 mbelib
fred@DESKTOP-GVLJLM4:~/dsd$
 

lwvmobile

Member
Joined
Apr 26, 2020
Messages
116
Location
Lafayette County, FL
It really doesn't matter where you clone those 3 from and extract them, when you run make, it builds those in their own respective 'build' folder, when you run the 'make install' command afterwards, it usually puts the files where they need to be for them to be used by other software. Usually they will wind up in the /usr/bin/ folder. You'll want to make and make install IT++ and mbelib first as those are dependencies of DSD so that the cmake of DSD can find those dependencies. It really just depends on the cmake files, they will usually look for their dependencies in /usr/bin/ and/or any other paths you may have specified.

If you still aren't getting any other devices to show up, there may be some dependency we are missing. Not entirely sure, since its Kali (which is based on debian). Do you do a lot of penetration testing :ROFLMAO: ?

The only thing I can say for sure is just to go back and see if there are any dependencies you may have missed. If you happen to have Synaptic Package Manager installed, you might check that and see if you have portaudio19-dev package installed.

What's the output of

Code:
dpkg-query -l portaudio19-dev
 

adcockfred

Member
Premium Subscriber
Joined
Apr 8, 2010
Messages
366
Location
Aldine, tx.
fred@DESKTOP-GVLJLM4:~$ dpkg-query -l portaudio-dev
dpkg-query: no packages found matching portaudio-dev
fred@DESKTOP-GVLJLM4:~$ c
 

lwvmobile

Member
Joined
Apr 26, 2020
Messages
116
Location
Lafayette County, FL
You might have better luck if you copy the commands and then paste them into your terminal instead of typing them back out. That being said, might be worth a little bit of time to start back from the beginning and go through all the instructions from the start, this time copying and pasting each line of code into your terminal one at a time. I think you must have missed something along the way.
 

adcockfred

Member
Premium Subscriber
Joined
Apr 8, 2010
Messages
366
Location
Aldine, tx.
Yeah i am going to build up the small ssd where i had everthing running in ubuntu in
the begining.
but i work nights, so i gotta get mama to hair dresser and dvm
and then it will nap time. i will post the next calamity before dawn
 

lwvmobile

Member
Joined
Apr 26, 2020
Messages
116
Location
Lafayette County, FL
Hey, if you have multiple hard drives, or multiple SSD drives, you COULD have one SSD with multiple partitions on it, and have a different install on each partition. One for *Buntu, one for Windows, one for whatever. Just depends on how much storage space you need for each one. Typically, what I have is one SSD for my main operating system, then I have several HDDs, each with one small partition for a second operating system, and the rest for storage.
 

adcockfred

Member
Premium Subscriber
Joined
Apr 8, 2010
Messages
366
Location
Aldine, tx.
Oh yeah, i have a lots of e-towers. the gigabyte board i lunched was the 3 rd gen from work at wrecker schack. I just went and pulled the 4 th gen coming out. One of the 3 rd gen is a small form factor and iot will that that b-350 board with nvme, with no cooler. I took the big e-tower mate to one i lunched, pretty case and put z-370 an 8700k in it and a Izuna cooler, but the grand kids took it for their games all still on 8 gb of ram. So i have 3 extra ssd's and many spinning drives.
 
Top