r/hamdevs • • Aug 30 '20
D-Star vocoder emulator
There is a need for a D-Star vocoder emulator by the ham community for those who host cloud based bridges for digital voice modes.
If your a ham with this talent or know of one, the community would appreciate your efforts,
It should likely work similarly to the md380-emu tool by Travis (KK4VCZ) that folks have been using for DMR and the other modes.
(D-Star has been out out of patent for a couple years)
https://github.com/nostar/dudestar
https://github.com/f4exb/dsdcc - dsd rewrite - C++ library with a single decoder object
https://github.com/szechyjs/dsd
https://github.com/szechyjs/mbelib
https://github.com/LouisErigHerve/dsd
http://git.osmocom.org/op25/tree/op25/gr-op25_repeater/lib - Op25 has encode and decode support for AMBE (D-Star, DMR and YSF) and IMBE (P25)
https://github.com/balint256/op25/tree/master/op25/gr-op25_repeater/lib/imbe_vocoder - Pavel's IMBE Encoder/Decoder Fixed-Point implementation
http://git.osmocom.org/osmo-gmr/tree/src/codec
https://github.com/on1arf/voice-ann
https://github.com/dl1bff/ircDDB-mheard/blob/master/ircDDB-mheard.c - Line 383 - handles the bit interleaving and FEC processing
https://github.com/travisgoodspeed/md380tools/ - The MD380 Emulator (capable of AMBE encoding and decoding)
5
u/gorkish Aug 30 '20
This can't happen at the very least unless the coefficients for encoding the specific D* variant of AMBE are exposed in a software implementation somewhere like the one in the MD380 firmware. Since as far as anyone knows nobody has ever licensed a software implementation of D* from DVSI, this simply doesn't exist.
Let me be blunt: Unless some little fairy simply leaks the needed documentation or code, nobody with the requisite skills to further a reversing effort gives one shit about doing it. Hams should have never tolerated the proprietary and undocumented AMBE codec on their bands. The original critics of D* have been saying this for 20 years.
1
u/[deleted] Aug 30 '20 edited Aug 30 '20
The need is a tool (encode and decode) that works like the MD-380 emulator (which doesn't do the AMBE that D-Star uses), based off source code mostly from DSD, but likely gathered from some of the other sources I provided.
A lot of people who host cloud based bridges for the digital voice modes don't have a way to plug a AMBE dongle into a VPS. (And it shouldn't be that way anyway since its out of patent). (ex https://kv4s.com/2019/09/24/android-setting-up-a-ham-radio-hotspot-in-the-cloud-or-raspberry-pi-and-accessing-it-with-dvswitch-mobile/ )
There is a working software D-Star AMBE decoder in DSD, but it sounds pretty poor compared to doing it via the chip. I agree though it would take someone with the right skill set.
The original reverse engineering thread: https://forums.radioreference.com/threads/decoding-d-star-any-success.215282/
Its been said elsewhere that the suspected key to getting it better output is with the quantization tables:
4
u/longjohnboy Aug 30 '20
Can you elaborate a bit on the specific need? It looks like there are a lot of tools tools here, and some combination thereof appears likely to very nearly satisfy your requirements. I'm not a software developer, but I'm pretty good at rapidly making functional kludges.
2
u/2E1EPQ Aug 30 '20
Really this needs someone who (a) is a software developer with the right skills, (b) wants to scratch the same itch for themselves, (c) is inclined to release something in the open. It’s a numbers game, may happen tomorrow, may never happen. Completely pot luck. This is unlikely to be a trivial project, so quite some time commitment required, time that would otherwise be someone’s weekends for say, half a year.
1
u/cosmicrae Sep 22 '20
In this entire arena of MBE/IMBE/AMBE/AMBE-2, which ones are actually used on the Amatuer Radio Service transmissions, and which ones are no longer covered by patents. There seems to be some confusion about the latter issue.