Hi Jeroen,

It's never easy....

1) codec2_decode() is not defined in freedv_api.h

2) codec2_decode() looks to require "bits" not "packed_bits"

I'd like not to have to modify the codec2 library so my freedv binary

will run on an updated codec2 library.

Al VK2ZIW

On Wed, 17 Jun 2020 12:17:04 +0200, Jeroen Vreeken wrote
> Hi Al,
> 
> So you need both the codec2 data and the audio?
> In that case I would use the freedv_rawdatarx function to get thecodec2 data.
> The audio data can be retrieved by calling codec2_decode() with it,then you 
> have both.
> 
> If you use the freedv_rawdatarx() function the text callbackfunctions will 
> still be called in the same manner as if you had usedfreedv_rx() so that 
> should not be a problem.
> 
> 73,
> Jeroen PE1RXQ
> 
> On 06/17/2020 09:20 AM, Al Beard wrote:
> Hi Jeroen,
> 
> 
> I do actually want the decoded audio andthe text string.
> So, should I decode to voice, the 700C filesaved, after the QSO
> has finished?
> 
> 
> As I've mentioned, I'm not a "C" guru but Isee a repeater as a very worthwhile
> project offering a remote area digitalvoice communication method for us hams
> where, unlike the commercial users eg.ambulances who have many bases so
> HF skip will always (~mostly) get thesignal to/from base HQ. 
> 
> 
> Also, after a call to  freedv_rawdatarx()is the text string recovered?
> It's used to "trigger" retransmission.
> 
> 
> Alan VK2ZIW
> 
> 
> On Wed, 17 Jun 2020 02:22:20 +0200, JeroenVreeken wrote
> > You should not mix freedv_rx() with freedv_rawdatarx().
> > Either one should be used.
> > The only difference between the two is that freedv_rx()will go one step 
> > further after the modem part and decodes intoaudio.
> > 
> > So after the call to freedv_rawdatarx() you are done andcan skip freedv_rx()
> > 
> > On 06/16/2020 11:49 PM, Al Beard wrote:
> > Hi Jeroen, 
> > 
> > In freebeacon.c 
> > Line: 720 
> > 
> >            nin = freedv_nin(f); 
> >            while (codec2_fifo_read(fifo, demod_in,nin) == 0) { 
> >                int nout = 0; 
> >  //Alan 
> >                ncodecb = freedv_rawdatarx(f,rxdata_out, demod_in);  
> > // original code continues 
> >                nout = freedv_rx(f, speech_out,demod_in); 
> >                 freedv_get_modem_stats(f, &sync,&snr_est); 
> >                nin = freedv_nin(f); 
> > 
> > --------- 
> > Can I do this without causing any problems? 
> > 
> > I'm concerned that routines called by freedv_rx()will have 
> > already processed the demod_in audio data. 
> > 
> > Alan VK2ZIW 
> > 
> > On Tue, 16 Jun 2020 17:58:14 +0200, Jeroen Vreekenwrote 
> > > Hi Al, 
> > > 
> > > Until recently you would have needed thefreedv_codecrx() and 
> > > freedv_codectx() functions. 
> > > If you have the 'latest greatest' git versionyou will need to use 
> > > freedv_rawdatarx() and freedv_rawdatatx() 
> > > 
> > > 73, 
> > > Jeroen PE1RXQ 
> > > 
> > > On 06/16/2020 12:42 PM, Al Beard wrote: 
> > > > Hi all, 
> > > > 
> > > > Yes, it's been eighteen months sincelightning blew my shack 
> > > > radios and computers and now I want to usethe latest Codec2 
> > > > library code in a repeater. 
> > > > 
> > > > Starting with the "freebeacon" code, I wantto retransmit the received 
> > > > 700C data and include the text string orstrings. 
> > > > So the first step is to receive the "packeddata bits". 
> > > > 
> > > > Can somebody point me to a function infreedv_api.x that will allow 
> > > > getting the "packed data bits" ? 
> > > > 
> > > > (In the past, I had to add a function.) 
> > > > 
> > > > 73    There is a valve type 73, has anybodyused it in a transmitter 
> > > >      or receiver? 
> > > >--------------------------------------------------- 
> > > > Alan VK2ZIW 
> > > > 
> > > > OpenWebMail 2.53 
> > > > 
> > > > 
> > > > 
> > > >_______________________________________________ 
> > > > Freetel-codec2 mailing list 
> > > > [email protected]
> > > > https://lists.sourceforge.net/lists/listinfo/freetel-codec2
> > > > 
> > > 
> > > _______________________________________________
> > > Freetel-codec2 mailing list 
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/freetel-codec2
> > 
> > --------------------------------------------------- 
> > Alan Beard 
> > 
> > OpenWebMail 2.53 
> >  
> > 
> > 
> > 
> >_______________________________________________
Freetel-codec2 mailing

list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

> 
> --------------------------------------------------- 
> Alan Beard 
> 
> OpenWebMail 2.53 
> 
> 
> 
> 
> 
>_______________________________________________
Freetel-codec2 mailing 
list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

--------------------------------------------------- 
Alan Beard

OpenWebMail 2.53

 
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to