Home
Macintosh Links
|
KiwiSDR Sound ClientFirst a warning, this code is not a piece of art. It was quickly thrown together so I could route audio to decoding apps. It certainly needs some work :) The original kiwiclient is available here: https://github.com/jks-prv/kiwiclient You will want to download that first.
If you don't have pip installed, you need it:
You also need to make sure you have the python sounddevice library installed, if not, install it:
And you need numpy if you don't have it already:
On Windows I used:
The script requires the device number of the sound device to route audio to, this can be done with
$ python -m sounddevice 0 Built-in Microphone, Core Audio (2 in, 0 out) < 1 Built-in Output, Core Audio (0 in, 2 out) 2 HDMI, Core Audio (0 in, 2 out) 3 USB Audio Device, Core Audio (1 in, 2 out) 4 iMic USB audio adapter, Core Audio (0 in, 2 out) 5 iMic USB audio adapter, Core Audio (2 in, 0 out) > 6 Soundflower (2ch), Core Audio (2 in, 2 out) 7 Soundflower (64ch), Core Audio (64 in, 64 out) 8 Aggregate Device, Core Audio (6 in, 2 out) 9 Aggregate Device2, Core Audio (4 in, 0 out) 10 Multi-Output Device, Core Audio (0 in, 2 out)In this case, my virtual audio device, SoundFlower, is device number 6.
Here's an example, streaming audio from my KiwiSDR tuned to 14230 USB for decoding SSTV:
Let's break down the arguments:
Download a copy of kiwisound.py: https://www.blackcatsystems.com/download/kiwisound.py.zip (September 15, 2019) In order to get the good quality resampling, the script should use libsamplerate, install it with:
Thanks to Jeffrey Randow (N5SNT) who let me know that this line needs to be added due to S_meter support added to the most recent version of kiwiclient, at line 33:
(This addition is in the current version of kiwisound on this page, I am mentioning this for anyone who has an older copy)
And another change... well a few... to deal with the changes made to kiwiclient around September 5, 2019: Change lines 11 and 12 from: from kiwiclient import KiwiSDRStream from kiwiworker import KiwiWorkerto from kiwi import KiwiSDRStream, KiwiWorkerand you need to add this as well around line 34
Now maybe you need some apps to decode SSTV, FAX, or other modes?? Look on the left side of your browser window, I have lots to choose from :)
Email your comments and questions to info@blackcatsystems.com Last modified September 18, 2019
|